elrond-wasm-rs
elrond-wasm-rs copied to clipboard
Generalize rewards distribution claim
- generalized the rewards distribution smart contract in order to allow the user to claim any kind of reward token
- split the rewards into buckets with the
reward_id
key - the raffle reward is now
nft_reward_percent
which determines the percentage of rewards that a NFT nonce gets from a given raffle regardless of the reward token used - claiming a the rewards now sets the
was_claimed
flag, which is used to prevent claiming twice
Contract comparison - from 93026dadb0007c02290f0e25db73bb30f5a9828f to fffb246d4c55eccdd7f5f9b6a7a24d7a589e725a
Path                                                        |                                     size |                  has-allocator |                     has-format |
---|---|---|---|
elrond-wasm-rs/contracts/benchmarks | |||
- send-tx-repeat/send-tx-repeat.wasm | 917 | No | No |
- str-repeat/str-repeat.wasm | 3763 | Yes | No |
elrond-wasm-rs/contracts/benchmarks/mappers | |||
- linked-list-repeat/linked-list-repeat.wasm | 7666 | No | No |
- map-repeat/map-repeat.wasm | 8645 | No | No |
- queue-repeat/queue-repeat.wasm | 6779 | No | No |
- set-repeat/set-repeat.wasm | 8359 | No | No |
- single-value-repeat/single-value-repeat.wasm | 5344 | No | No |
- vec-repeat/vec-repeat.wasm | 6198 | No | No |
elrond-wasm-rs/contracts/core | |||
- price-aggregator/elrond-sc-price-aggregator.wasm | 20541 :arrow_right: 20594 :red_circle: | No | No |
- wegld-swap/elrond-sc-wegld-swap.wasm | 4509 | No | No |
elrond-wasm-rs/contracts/examples | |||
- adder/adder.wasm | 695 | No | No |
- bonding-curve-contract/bonding-curve-contract.wasm | 16986 | No | No |
- crowdfunding-esdt/crowdfunding-esdt.wasm | 4309 | No | No |
- crypto-bubbles/crypto-bubbles.wasm | 2391 | No | No |
- digital-cash/digital-cash.wasm | 5655 | No | No |
- empty/empty.wasm | 236 | No | No |
- esdt-transfer-with-fee/esdt-transfer-with-fee.wasm | 9269 | No | No |
- factorial/factorial.wasm | 574 | No | No |
- lottery-esdt/lottery-esdt.wasm | 11599 | No | No |
- multisig | |||
- - multisig.wasm | 15938 | No | No |
- - multisig-full.wasm | 18012 | No | No |
- - multisig-view.wasm | 7948 | No | No |
- nft-minter/nft-minter.wasm | 11312 | No | No |
- nft-storage-prepay/nft-storage-prepay.wasm | 2307 | No | No |
- ping-pong-egld/ping-pong-egld.wasm | 6939 | No | No |
- proxy-pause/proxy-pause.wasm | 7459 | No | No |
- rewards-distribution/rewards-distribution.wasm | 11297 :arrow_right: 12993 :red_circle: | No | No |
- token-release/token-release.wasm | 8643 | No | No |
elrond-wasm-rs/contracts/examples/crypto-kitties | |||
- kitty-auction/kitty-auction.wasm | 12824 | No | No |
- kitty-genetic-alg/kitty-genetic-alg.wasm | 3618 | No | No |
- kitty-ownership/kitty-ownership.wasm | 15806 | No | No |
elrond-wasm-rs/contracts/examples/order-book | |||
- factory/order-book-factory.wasm | 5180 | No | No |
- pair/order-book-pair.wasm | 17337 | No | No |
elrond-wasm-rs/contracts/feature-tests | |||
- abi-tester | |||
- - abi-tester.wasm | 9990 | Yes | No |
- - abi-tester-ev.wasm | 772 | No | No |
- alloc-features/alloc-features.wasm | 26157 | Yes | Yes |
- basic-features/basic-features.wasm | 60444 | No | No |
- big-float-features/big-float-features.wasm | 5243 | No | No |
- esdt-system-sc-mock/esdt-system-sc-mock.wasm | 4836 | No | No |
- formatted-message-features/formatted-message-features.wasm | 4375 | No | No |
- multi-contract-features | |||
- - multi-contract-features.wasm | 611 | No | No |
- - multi-contract-features-view.wasm | 1133 | No | No |
- panic-message-features/panic-message-features.wasm | 7030 :arrow_right: 7032 :red_circle: | Yes | Yes |
- payable-features/payable-features.wasm | 4670 | No | No |
- rust-testing-framework-tester/rust-testing-framework-tester.wasm | 9329 | Yes | No |
- use-module | |||
- - use-module.wasm | 36252 :arrow_right: 36249 :green_circle: | No | Yes |
- - use-module-view.wasm | 748 | No | No |
elrond-wasm-rs/contracts/feature-tests/composability | |||
- forwarder/forwarder.wasm | 31545 | No | No |
- forwarder-raw/forwarder-raw.wasm | 14628 | No | No |
- local-esdt-and-nft/local-esdt-and-nft.wasm | 12585 | No | No |
- promises-features/promises-features.wasm | 5807 | No | No |
- proxy-test-first/proxy-test-first.wasm | 9899 | Yes | No |
- proxy-test-second/proxy-test-second.wasm | 3464 | Yes | No |
- recursive-caller/recursive-caller.wasm | 7081 | No | No |
- transfer-role-features/transfer-role-features.wasm | 9291 | No | No |
- vault/vault.wasm | 8475 | No | No |
elrond-wasm-rs/contracts/feature-tests/composability/esdt-contract-pair | |||
- first-contract/first-contract.wasm | 2884 | No | No |
- second-contract/second-contract.wasm | 1285 | No | No |
elrond-wasm-rs/contracts/feature-tests/composability/execute-on-dest-esdt-issue-callback | |||
- child/child.wasm | 6327 | No | No |
- parent/parent.wasm | 3467 | No | No |
elrond-wasm-rs/contracts/feature-tests/erc-style-contracts | |||
- crowdfunding-erc20/crowdfunding-erc20.wasm | 7711 | No | No |
- erc1155/erc1155.wasm | 16405 | Yes | No |
- erc1155-marketplace/erc1155-marketplace.wasm | 15100 | Yes | No |
- erc1155-user-mock/erc1155-user-mock.wasm | 3949 | Yes | No |
- erc20/erc20.wasm | 2159 | No | No |
- erc721/erc721.wasm | 2542 | No | No |
- lottery-erc20/lottery-erc20.wasm | 17162 | Yes | No |
elrond-wasm-rs/contracts/feature-tests/legacy-examples | |||
- crypto-bubbles-legacy/crypto-bubbles-legacy.wasm | 6264 | Yes | No |