Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVM Fungible Tokens #3

Merged
merged 43 commits into from
Mar 7, 2021
Merged

EVM Fungible Tokens #3

merged 43 commits into from
Mar 7, 2021

Conversation

mrLSD
Copy link
Contributor

@mrLSD mrLSD commented Feb 16, 2021

NEAR EVM SmartContract for ETH Connector
Implementation:

@mrLSD mrLSD changed the title Added fungible token and connector sources EVM Fungible Tokens Feb 16, 2021
@artob artob self-requested a review February 22, 2021 14:11
@mrLSD mrLSD marked this pull request as draft February 22, 2021 14:23
@mrLSD mrLSD self-assigned this Feb 22, 2021
@mrLSD mrLSD requested review from artob and removed request for artob February 22, 2021 14:27
@mfornet
Copy link
Contributor

mfornet commented Feb 26, 2021

@mfornet where you can see implementation fungible-tokens as SDK?
Please give me a link.

https://github.com/near/near-sdk-rs/tree/09f7342323edf89552b0a079aa19d0633359bf4b/near-contract-standards

@mrLSD mrLSD merged commit d00bacd into master Mar 7, 2021
@mrLSD mrLSD deleted the evm-connector branch March 7, 2021 22:12
@@ -0,0 +1 @@
stable-2020-10-08
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the rationale for this specific toolchain version? Let's document it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/near/near-sdk-rs/blob/master/rust-toolchain
With higher version I can't build a contract with near-sdk-rs.

near_sdk::setup_alloc!();

/// Price per 1 byte of storage from mainnet genesis config.
const STORAGE_PRICE_PER_BYTE: Balance = 100_000_000_000_000_000_000; // 1e20yN, 0.0001N
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the original or the adjusted storage price? The 10x fee reduction goes into effect on March 8.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That particular const was related to bridge-token-connector, and it looks correct.
So if we will need to change it feel free to notify me.

@@ -0,0 +1,9 @@
#!/bin/bash

RUSTFLAGS='-C link-arg=-s' cargo build --target wasm32-unknown-unknown --release || exit 1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just begin the script with set -e, and then you don't need to add constructs such as || exit 1.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. It was just copy-pasted from some other NEAR contract.

@@ -0,0 +1,2902 @@
# This file is automatically @generated by Cargo.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason for committing Cargo.lock? If not, let's leave it out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cargo.lock provides reproducing process for building in another environment. Also looking at near-sdk-rs I can see that file. So for me, it looks like some standard way for NEAR repos. If it's not so, pls let me know.

@ilblackdragon
Copy link

ilblackdragon commented Mar 16, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants