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

Mike/141 movement with sim #304

Merged
merged 12 commits into from
Mar 3, 2021

Conversation

mikedotexe
Copy link
Contributor

mike is hurrying

…movement-with-sim

# Conflicts:
#	examples/fungible-token/res/fungible_token.wasm
#	near-contract-standards/src/fungible_token/implementation.rs
@mikedotexe mikedotexe changed the base branch from master to add-near-std March 2, 2021 19:47
@mikedotexe mikedotexe changed the base branch from add-near-std to add-ft-sim-tests March 2, 2021 19:48
@@ -201,57 +198,52 @@ impl FungibleTokenResolver for FungibleToken {
}
}
}
amount.into()
PromiseOrValue::Value(U128::from(amount)).into()
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need PromiseOrValue::Value and into()?

@evgenykuzyakov evgenykuzyakov merged commit bac0754 into add-ft-sim-tests Mar 3, 2021
@evgenykuzyakov evgenykuzyakov deleted the mike/141-movement-with-sim branch March 3, 2021 02:01
evgenykuzyakov pushed a commit that referenced this pull request Mar 3, 2021
* refactor: add more simulation tests to ft example

Co-authored-by: Willem Wyndham <willem@cs.umd.edu>

* update directory structure for sim tests

* clean up fungible-token/Cargo.toml

* examples/ft: whitelist members again

* Mike/141 movement with sim (#304)

* implement account registration and don't use storage for fungible token

* update sim tests

* ft_resolve_transfer should just return U128, ar_is_registered view only

* final change with use bytes for deposit

* Cargo.toml changes

* Reworking DeFi test example

* Working again, except no force closing of the account

* Add extra callbacks

Co-authored-by: Evgeny Kuzyakov <ek@nearprotocol.com>

Co-authored-by: Willem Wyndham <willem@cs.umd.edu>
Co-authored-by: Mike Purvis <mikedotexe@gmail.com>
Co-authored-by: Evgeny Kuzyakov <ek@nearprotocol.com>
evgenykuzyakov pushed a commit that referenced this pull request Mar 4, 2021
…more tools (#275)

* Adding near-std library

* Return back near_bindgen marco call on trait

* Rename near-std to near-lib

* fix: allow trait methods in generated impl

* Rename near lib to near contract standards. Move all utils into sdk.

* Revert accidental change in cargo.toml

* Disable sim test for FT until #276 is resolved

* feat(contract-standards) Switch contract standards to use NEP-141 for FungibleToken

* Change LookupMap name to 'a' to be compatible with wNEAR implementation

* Bring back sim tests in fungible-token

* Refactor standards

* Fix log tests

* Fix tests and compilation

* Fix tests

* Bumping to exact version of =3.0.0.pre.2

* Fix macro bug in impl_token

* update fungible token readme to stop describing NEP-21

* Introducing Base58CryptoHash and moving metadata implementation to the FT example contract

* Remove globals from gitignore

* Update tests

* refactor: add more simulation tests to ft example (#297)

* refactor: add more simulation tests to ft example

Co-authored-by: Willem Wyndham <willem@cs.umd.edu>

* update directory structure for sim tests

* clean up fungible-token/Cargo.toml

* examples/ft: whitelist members again

* Mike/141 movement with sim (#304)

* implement account registration and don't use storage for fungible token

* update sim tests

* ft_resolve_transfer should just return U128, ar_is_registered view only

* final change with use bytes for deposit

* Cargo.toml changes

* Reworking DeFi test example

* Working again, except no force closing of the account

* Add extra callbacks

Co-authored-by: Evgeny Kuzyakov <ek@nearprotocol.com>

Co-authored-by: Willem Wyndham <willem@cs.umd.edu>
Co-authored-by: Mike Purvis <mikedotexe@gmail.com>
Co-authored-by: Evgeny Kuzyakov <ek@nearprotocol.com>

* Fix cross-contract lazy static imports

* ft receiver returns PromiseOrValue<U128>

* update to test and ft wasm files

* Address review comments

* Fix for a nearcore master CI

Co-authored-by: Willem Wyndham <willem@cs.umd.edu>
Co-authored-by: Evgeny Kuzyakov <ek@nearprotocol.com>
Co-authored-by: Mike Purvis <mikedotexe@gmail.com>
Co-authored-by: Chad Ostrowski <221614+chadoh@users.noreply.github.com>
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.

3 participants