Skip to content

Bump contracts to 1.0.0a28#774

Merged
MantisClone merged 14 commits intov4mainfrom
issue773-contracts-alpha-28
Apr 4, 2022
Merged

Bump contracts to 1.0.0a28#774
MantisClone merged 14 commits intov4mainfrom
issue773-contracts-alpha-28

Conversation

@MantisClone
Copy link
Copy Markdown
Contributor

@MantisClone MantisClone commented Mar 31, 2022

Fixes #773.

Changes proposed in this PR:

This PR contains API breaking changes!

  • Bump contracts to v1.0.0a28
  • Add transferable and owner arguments to deploy_erc721_contract, create_nft_with_erc20, create_nft_erc20_with_pool, create_nft_erc20_with_fixed_rate, create_nft_erc20_with_dispenser, create_nft_with_metadata
  • Add missing ERC20Token methods: get_pools, get_fixed_rates, get_dispensers
  • Refactor ERC721Factory.verify_nft to use get_id to determine if data NFT exists on chain instead of event filtering, which broke because the newTokenAddress argument of the NFTCreated event is no longer indexed.
  • Refactor ERC721Factory.search_exchange_by_datatoken to use ERC20Token.get_fixed_rates() instead of event filtering.
  • Rename variable in fixed-rate-exchange-flow.md and test_fre_flow.py to clarify value returned from search_exchange_by_datatoken
  • Remove ERC721NFT methods related to "v3": set_data_v3, wrap_v3_dt, mint_v3_dt, add_v3_minter, and remove_v3_minter

  * Previous logic no longer works because newTokenAddress argument of
    NFTCreated event is no longer indexed in latest contracts version
  * Use FixedRateExchange.getExchanges() instead of event filters
  * Use ERC20Token.get_fixed_rates
@MantisClone MantisClone temporarily deployed to CC_REPORTER_ID April 4, 2022 19:04 Inactive
@MantisClone MantisClone temporarily deployed to CC_REPORTER_ID April 4, 2022 19:04 Inactive
@MantisClone MantisClone merged commit 44c3626 into v4main Apr 4, 2022
@MantisClone MantisClone deleted the issue773-contracts-alpha-28 branch April 4, 2022 19:54
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.

Bump contracts to 1.0.0a28

2 participants