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

proxy-pause sc use a proper sc for extension #1138

Merged
merged 4 commits into from
Jun 27, 2023
Merged

Conversation

alyn509
Copy link
Contributor

@alyn509 alyn509 commented Jun 27, 2023

Issue:

  • proxy-pause was using a contract from feature-tests for it's testing

Fix:

  • created a new contract within examples called check-pause whose only purpose is to be used by proxy-pause for testing

@github-actions
Copy link

github-actions bot commented Jun 27, 2023

Contract comparison - from e3baa63 to bee8fa2

Path                                                                                             size                  has-allocator                     has-format
mx-sdk-rs/contracts/benchmarks
- large-storage/large-storage.wasm 2927 No No
- send-tx-repeat/send-tx-repeat.wasm 902 No No
- str-repeat/str-repeat.wasm 2189 No No
mx-sdk-rs/contracts/benchmarks/mappers
- linked-list-repeat/linked-list-repeat.wasm 7343 No No
- map-repeat/map-repeat.wasm 8289 No No
- queue-repeat/queue-repeat.wasm 6620 No No
- set-repeat/set-repeat.wasm 8054 No No
- single-value-repeat/single-value-repeat.wasm 5083 No No
- vec-repeat/vec-repeat.wasm 5887 No No
mx-sdk-rs/contracts/core
- price-aggregator/multiversx-price-aggregator-sc.wasm 20305 No No
- wegld-swap/multiversx-wegld-swap-sc.wasm 4376 No No
mx-sdk-rs/contracts/examples
- adder/adder.wasm 687 No No
- bonding-curve-contract/bonding-curve-contract.wasm 15529 No No
- crowdfunding-esdt/crowdfunding-esdt.wasm 3625 No No
- crypto-bubbles/crypto-bubbles.wasm 2351 No No
- crypto-zombies/cryptozombies.wasm 11124 No No
- digital-cash/digital-cash.wasm 7390 No No
- empty/empty.wasm 232 No No
- esdt-transfer-with-fee/esdt-transfer-with-fee.wasm 9045 No No
- factorial/factorial.wasm 567 No No
- fractional-nfts/fractional-nfts.wasm 8729 No No
- lottery-esdt/lottery-esdt.wasm 11343 No No
- multisig
- - multisig.wasm 15379 No No
- - multisig-full.wasm 17391 No No
- - multisig-view.wasm 7724 No No
- nft-minter/nft-minter.wasm 10024 No No
- nft-storage-prepay/nft-storage-prepay.wasm 2265 No No
- ping-pong-egld/ping-pong-egld.wasm 6691 No No
- proxy-pause/proxy-pause.wasm 5757 No No
- rewards-distribution/rewards-distribution.wasm 11251 No No
- seed-nft-minter/seed-nft-minter.wasm 15323 No No
- token-release/token-release.wasm 8438 No No
- check-pause/check-pause.wasm N/A ➡️ 1227 ⚠️ N/A ➡️ No ⚠️ N/A ➡️ No ⚠️
mx-sdk-rs/contracts/examples/crypto-kitties
- kitty-auction/kitty-auction.wasm 10943 No No
- kitty-genetic-alg/kitty-genetic-alg.wasm 3584 No No
- kitty-ownership/kitty-ownership.wasm 14006 No No
mx-sdk-rs/contracts/examples/order-book
- factory/order-book-factory.wasm 5016 No No
- pair/order-book-pair.wasm 16380 ➡️ 16386 🔴 No No
mx-sdk-rs/contracts/feature-tests
- abi-tester
- - abi-tester.wasm 7739 No No
- - abi-tester-ev.wasm 758 No No
- alloc-features/alloc-features.wasm 22373 No Yes
- basic-features/basic-features.wasm 58379 No No
- big-float-features/big-float-features.wasm 5170 No No
- esdt-system-sc-mock/esdt-system-sc-mock.wasm 4465 No No
- formatted-message-features/formatted-message-features.wasm 4311 No No
- multi-contract-features
- - multi-contract-example-feature.wasm 678 No No
- - multi-contract-features.wasm 679 No No
- - multi-contract-features-view.wasm 1116 No No
- panic-message-features/panic-message-features.wasm 3175 No Yes
- payable-features/payable-features.wasm 5105 No No
- rust-snippets-generator-test/rust-snippets-generator-test.wasm 5745 No No
- rust-testing-framework-tester/rust-testing-framework-tester.wasm 8304 No No
- use-module
- - use-module.wasm 34022 No Yes
- - use-module-view.wasm 734 No No
mx-sdk-rs/contracts/feature-tests/composability
- forwarder/forwarder.wasm 32001 No No
- forwarder-raw/forwarder-raw.wasm 14407 No No
- local-esdt-and-nft/local-esdt-and-nft.wasm 11910 No No
- promises-features/promises-features.wasm 10408 No No
- proxy-test-first/proxy-test-first.wasm 6754 No No
- proxy-test-second/proxy-test-second.wasm 1950 No No
- recursive-caller/recursive-caller.wasm 5799 No No
- transfer-role-features/transfer-role-features.wasm 8704 No No
- vault/vault.wasm 7871 No No
mx-sdk-rs/contracts/feature-tests/composability/esdt-contract-pair
- first-contract/first-contract.wasm 2722 No No
- second-contract/second-contract.wasm 1356 No No
mx-sdk-rs/contracts/feature-tests/composability/execute-on-dest-esdt-issue-callback
- child/child.wasm 4933 No No
- parent/parent.wasm 1880 No No
mx-sdk-rs/contracts/feature-tests/erc-style-contracts
- crowdfunding-erc20/crowdfunding-erc20.wasm 6209 No No
- erc1155/erc1155.wasm 12872 No No
- erc1155-marketplace/erc1155-marketplace.wasm 12064 No No
- erc1155-user-mock/erc1155-user-mock.wasm 1448 No No
- erc20/erc20.wasm 2130 No No
- erc721/erc721.wasm 2483 No No
- lottery-erc20/lottery-erc20.wasm 13383 No No
mx-sdk-rs/contracts/feature-tests/legacy-examples
- crypto-bubbles-legacy/crypto-bubbles-legacy.wasm 6223 Yes No

@alyn509 alyn509 merged commit 8669096 into master Jun 27, 2023
5 checks passed
@alyn509 alyn509 deleted the proxy-pause-update branch June 27, 2023 13:30
alyn509 added a commit that referenced this pull request Jul 19, 2023
* Implement `IntoIterator` for storage mappers and some types

* Use explicit `Item` types in `IntoIterator` impls

* sc-meta test generator tool

* sc-meta test generator tool - refactor, test, whitespace fix

* sc-meta test generator tool - create flag

* cleanup

* updated tests using sc-meta test-gen

* cargo fmt

* implementation

* clippy

* fix depositor

* undo actions

* undo actions

* fix tests part 1

* fix tests part 2

* fix tests 2

* forward + test

* claim tests update

* swap indexes for UnorderedSetMapper (#1033)

* implementation + test

* update test

* fix set index

* fix indexes

* add sanity check for index

* update description

* test swap case indexes equal

* fix after review

* sc 0.39.8, vm 0.1.8

* publish.sh instructions update

* Cargo.lock update

* call value egld as ManagedRef

* call value all esdts as ManagedRef

* call value - removed esdt_value()

* clippy fix

* sc 0.40.0, vm 0.2.0

* Cargo.lock update

* meta crate EI checker

* clippy fix

* cleanup

* ManagedVecItem impl for arrays

* ManagedVecItem payload size cleanup

* sc 0.40.1, vm 0.2.1

* Cargo.lock update

* allocator syntax changes for rustc 1.71.0

* Use new github workflow (by commit hash).

* Use newer workflow.

* Use newer workflow.

* Use newer workflow.

* Use newer workflow.

* removed unnecessary alloc feature flags

* github action fix

* version fix

* Allocator option in multicontract.toml

* clippy fix

* panic fmt managed implementation

* panic fmt value formatting test

* Added missing allocator config

* new allocators: LeakingAllocator, StaticAllocator

* deprecated legacy methods from API wrappers

* deleted test-gen tool

* wasm-adapter refactor

* wasm macro fix

* simplified allocators

* doc fix

* Fix `assert_positive` function

* Remove commented code

* allocator memory_size function

* BigUint bitwise operation integration tests

* stack size in multicontract.toml

* packing abi + contract binary in one file

* stack size examples

* printing contract size

* sc file build info in root

* meta crate reorg

* test fix

* meta crate reorg: output contract

* meta crate reorg

* meta crate reorg: renamed sc_file_json -> mxsc_file_json

* codec moved under /data

* Cargo.lock update

* sc 0.41.0, vm 0.3.0

* changelog update

* Cargo.lock update

* format-tests dependency fix

* update default issue callback

* check if token state is pending

* check pending on simple issue

* clippy

* test fix

* tests update part2

* default issue callback set consistency

* test fixes part 3

* is not available bug fix

* fix test with empty string value

* add example inside snippet

* change check not set or pending

* fungible token mapper refactor

* top encode backwards compatibility

* undo encoding in test

* encoding fix in checks

* remove match from read token id

* fix text with empty storage as reset

* fix custom callback set token id

* undo storage mapper fungible token set

* remove set `notset` value

* fix decoding

* add clear to custom callbacks

* rename check + add clear to error

* default callbacks direct set storage

* token_mapper have TokenMapperState in memory

* update snippet

* token mapper bugfix

* token mappers folder

* sc 0.41.1, vm 0.3.1

* publish.sh update

* Cargo.lock update

* fix comment

* Digital cash fix (#1078)

* digital cash changes 1

* private key handles 1 single deposit

* digital cash lib rs update

* update readme digital cash

* digital cash tests update part 1

* scenatio update part 1

* update key and signatures

* claim fees + more tests

* update claim tests

* fix signatures

* multi esdt tests

* readme update

* Update contracts/examples/digital-cash/src/digital_cash.rs

Co-authored-by: dorin-iancu <72252689+dorin-iancu@users.noreply.github.com>

* fix after review

---------

Co-authored-by: dorin-iancu <72252689+dorin-iancu@users.noreply.github.com>

* chore(sdk/core): bump bip39 to v2.0.0

* chore(sdk/core): bump rand to v0.8.5

* sc 0.41.2, codec 0.17.2, vm 0.3.2

* update Cargo.lock

* fixed deploy on devnet (signed)

* explicit enum ABI

* large-storage contract & test

* ManagedBufferCachedBuilder bugfix

* sc 0.41.3, vm 0.3.3

* Cargo.lock update

* meta all command pretty print current index

* proxy-pause sc use a proper sc for extension (#1138)

* proxy- pause sc use a proper sc for extension

* update cargo toml version

* fix contract builder to proxy-pause test

* update all contracts

* rebranding

* master merge leftovers

---------

Co-authored-by: Oleksandr Movchan <oleksandr.movchan@tacanslabs.com>
Co-authored-by: Andrei Marinica <andrei.marinica@elrond.com>
Co-authored-by: Andrei Marinica <andrei.marinica@multiversx.com>
Co-authored-by: Robert Sasu <sasu.robert@gmail.com>
Co-authored-by: Andrei Băncioiu <andreibancioiu@users.noreply.github.com>
Co-authored-by: Costin Carabaș <costin.carabas@gmail.com>
Co-authored-by: dorin.iancu <dorin.iancu@elrond.com>
Co-authored-by: dorin-iancu <72252689+dorin-iancu@users.noreply.github.com>
Co-authored-by: rupansh <rupanshsekar@hotmail.com>
Co-authored-by: Bogdan <bogdan.oloeriu@gmail.com>
alyn509 added a commit that referenced this pull request Aug 11, 2023
* DebuggerApi - elliptic curves proper error messages

* api - removed mb_copy_to_slice_pad_right

* api - removed direct big int to heap conversions

* DebuggerApi - now used in all scenario tests

* DebuggerApi - print

* panic after log test

* mem_conv::with_mem_ptr_mut fix

* scenario api - folder structure reorg

* DebuggerApi - backend refactor

* DebuggerApi - DebugHandle

* DebuggerApi - DebugHandle context validation

* DebuggerApi - handle safety & context

* DebuggerApi - lldb printer test update

* DebugApi - all dependencies routed to the new one

* DebugApi - old implementation deleted from VM

* DebuggerApi - renamed to DebugApi everywhere

* whitebox test explicit error improvement

* VM hooks handler error refactoring

* debugger panic catching refactor

* cleanup

* vm - remove panics - subtract egld

* vm - remove panics - subtract esdt

* vm - remove panics - signal error

* remove static state from TxContext

* Executor interface in VM

* moved debugger executor impl to framework/scenario

* moved static stack impl to framework/scenario

* vm - separate VMAddress and H256

* moved bech32 module to framework/scenario

* vm - separate error messages

* vm - separate builtin function names

* proxy-pause sc use a proper sc for extension (#1138)

* proxy- pause sc use a proper sc for extension

* update cargo toml version

* fix contract builder to proxy-pause test

* update all contracts

* vm - separate encode/decode

* vm - HandleMap cleanup

* vm - separate RawHandle alias

* vm - separate display_util

* vm - removed BoxedBytes

* vm - separate esdt roles

* vm - removed BigUint re-export

* vm - removed dependency to framework

* re-export fix

* handle token issue and set special role

* clippy fixes

* cleanup, docs

* add new token identifiers to scen set state step

* refactor - transfer_egld_balance

* fixes after merge, random token identifier generation method

* handle issued token identifiers for blockchain update part 1

* whitebox test - query

* vm refactor - BlockchainMock split into VM and state

* vm refactor - BlockchainUpdate

* handle issued token identifiers for blockchain update part 2

* remove bech32 crate from vm and group unimplemented fns from system_sc

* find first token identifier matching ticker and add some tests

* fix clippy issues

* util - with_shared_mut_ref

* util - Shareable type

* vm refactor - sc queries using Shareable state/tx context

* clippy fix

* add cli for issue nft with all roles and new trace for scenarios

* test-gen with new version

* vm refactor - sc execution lambda, transfers

* bugfix

* vm refactor - sc calls

* system_mock register and set all roles and refactor

* whitebox test - call

* vm refactor - sc deploy

* whitebox test - deploy

* de-duplicated esdt local role names in the VM

* vm refactor - builtin func match instead of map of dyn trait

* vm refactor - removed static lifetime bound for whitebox closure

* vm refactor - esdt local role names

* vm refactor - builtin function trait

* old whitebox testing framework implementation based on the new one

* scenario generation fix

* rebranding

* scenario account setters: code, owner

* vm refactor - eliminated unnecessary generic

* Merge branch 'rc/v0.42' into feat/whitebox (system-sc)

* vm refactor - VMTokenType enum

* clippy fix

* fix after merge - BlockchainUpdate apply

* StaticApi in blackbox tests & interactor

* StaticApi in feature-tests unit tests

* StaticApi in multisig unit test

* StaticApi in static_buffer_ref_test

* revert test

* VMHooks impl refactor

* VMHooks impl refactor

* SingleTxApi implementation + usage in tests

* SingleTxApi test

* TxResponse refactor prototype

* TxResponse refactor prototype

* TxResponse refactor part1

* TypedScQuery refactor

* Adder: Add upgrade SC mandos test

* Adder: minor fix

* Adder: Test fix

* testing framework - execute step and handle result

* adapt some tests for with_result

* interactor - better error reporting

* interactors - better error reporting

* interactor methods aligned with testing framework

* testing framework - refactor

* adder interactor cleanup

* scenario steps expect from result - refactor, fix

* removed sc_deploy_use_new_address

* test fix

* digital cash test gen, rebuild

* wasm crate update

* large-storage test-gen

* clippy fix in tests

* txresponse refactor part I

* fix newline issue

* clippy fixes

* invalid dependency fix

* workspace fix

* ScDeployStep `code` setter, deprecated `contract_code`

* test fix

* add extra time for tx result retrieval for safety

* add minimal documentation

* fixes after review I

* clippy fixes II

* remove deprecated fn

* adapt leftover places after removing deprecated fn

* adapt leftover places after removing deprecated fn part II

* ScDeployStep code metadata default

* ScCallStep - deprecated `call_expect`

* scenario step default gas limit 5,000,000

* scenario step default expect ok

* scenario steps - refactored response method

* scenario step default expect ok

* testing framework - renamed step methods

* remove from multisig wegld interact

* more removes from multisig

* more removes from multisig part II

* finished removing from multisig

* removes from composability

* small changes

* CodecFrom anything implemented for IgnoreValue

* interactor sc_call refactoring

* interactor sc_deploy refactoring

* snippets generator - upgraded, fixed

* snippets generator - default src file changed

* snippets generator - contract code new syntax

* snippets generator - output formatting fix

* snippet generator - further fixes

* moved scenario macros

* renamed scenario step files

* renamed test files

* deprecated into_blockchain_call

* cargo fmt

* renamed whitebox-legacy

* deprecated legacy testing framework (whitebox_legacy)

* renamed multisig interact folder

* snippet generator Cargo.toml dep fix

* sc 0.42.0, codec 0.18.0, vm 0.4.0, scenario-format 0.20.0, sdk 0.2.0

* Cargo.lock update

* renamed test

* renamed tests

* upgraded adder upgrade test

* fix balance set

* test set over an NFT

* static to const

* started to make scenario debug engine multithreaded

* made ScenarioWorld and related stuff thread safe

* added tests

* rustc compatibility when generating wasm crate

* clippy fix

* github action update

* fixed clippy warning about std::mem::replace for Default

* fixes

* TxCache Send + Sync, clippy fix

* cargo fmt

* cleanup

* merge fixes

* merge fixes 2

* merge fixes 3

* merge fixes 4

* update rust toolchain

* update toolchain match actions.yml

* toolchain version attempt 3

---------

Co-authored-by: Andrei Marinica <andrei.marinica@multiversx.com>
Co-authored-by: Ovidiu Stinga <ovstinga@gmail.com>
Co-authored-by: Rupansh <rupanshsekar@hotmail.com>
Co-authored-by: Costin Carabaș <costin.carabas@gmail.com>
Co-authored-by: Fusee <quentus123@orange.fr>
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