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

feat/enshrine merge into feat/beta #178

Merged
merged 653 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
653 commits
Select commit Hold shift + click to select a range
f79ce74
Removed unused import
andreiblt1304 Sep 10, 2024
de7827b
Added separate function for fee checking
andreiblt1304 Sep 10, 2024
3019339
Renamed fee function
andreiblt1304 Sep 11, 2024
4663b15
Renamed test
andreiblt1304 Sep 11, 2024
858d5ed
Added more specific test name
andreiblt1304 Sep 11, 2024
d2dec7d
Moved expected payment amount to avoid cloninng
andreiblt1304 Sep 11, 2024
5ce8bd1
Added 2 more tests
andreiblt1304 Sep 11, 2024
be60a1a
Added bool to disable fee in setup function
andreiblt1304 Sep 12, 2024
f7a1b05
Added enable fee function and switched condition in setup
andreiblt1304 Sep 12, 2024
62a3762
Removed unnecessary bool argument and added enable_fee on set_fee
andreiblt1304 Sep 12, 2024
f69d0c7
Merge branch 'deposit-coverage' into enshrine-unified
andreiblt1304 Sep 13, 2024
e8d0351
Moved enable fee logic to add_fee endpoint
andreiblt1304 Sep 13, 2024
76fed3a
Fixed build error + regenerated proxy
andreiblt1304 Sep 13, 2024
46b2995
Added by hand NestedDecode to fee market proxy
andreiblt1304 Sep 13, 2024
fea1d85
Fee market init logic
andreiblt1304 Sep 13, 2024
cf4bacd
Merge pull request #117 from multiversx/deposit-coverage
andreiblt1304 Sep 13, 2024
a4332b7
Modified test and logic to fit new fee market fee setup
andreiblt1304 Sep 13, 2024
a11daea
Fixed tests and setup to fit new fee market logic
andreiblt1304 Sep 14, 2024
e354851
Merge pull request #122 from multiversx/fee-market-init-option
andreiblt1304 Sep 16, 2024
e5ef254
Added check of zero payments
andreiblt1304 Sep 16, 2024
07fb931
Added ToSelf instead of ToCaller
andreiblt1304 Sep 16, 2024
95885cc
Modified refundable amount check
andreiblt1304 Sep 16, 2024
c0fe0f4
Merge pull request #120 from multiversx/enshrine-unified
andreiblt1304 Sep 16, 2024
8d5177c
Removed fee market specific test
andreiblt1304 Sep 17, 2024
cfbbce1
Reverted delete
andreiblt1304 Sep 17, 2024
908b18a
Removed error match on fee market deploy
andreiblt1304 Sep 17, 2024
2b3beb4
Merge pull request #123 from multiversx/enshrine-tests-fix
andreiblt1304 Sep 17, 2024
e2358dc
Fixed failing esdt safe tests
andreiblt1304 Sep 17, 2024
5504211
Merge pull request #126 from multiversx/enshrine-tests-fix
andreiblt1304 Sep 17, 2024
54a0df0
Updated test setup for header verifier
andreiblt1304 Sep 29, 2024
587c4fd
Removed unused imports
andreiblt1304 Sep 29, 2024
56ada57
Added register esdt address test
andreiblt1304 Sep 30, 2024
5662b1d
Added test for operation registration
andreiblt1304 Sep 30, 2024
78b95c9
Added require for esdt address to be registered
andreiblt1304 Sep 30, 2024
a2cf940
Added test for removing executed hash
andreiblt1304 Sep 30, 2024
d3af56e
Added test for removing executed hash
andreiblt1304 Sep 30, 2024
d5d5d84
Removed unused constants
andreiblt1304 Sep 30, 2024
a8e0429
Clippy fixes
andreiblt1304 Oct 2, 2024
e773822
Merge pull request #130 from multiversx/enshrine-clippy
andreiblt1304 Oct 2, 2024
f8aa0e5
Merge pull request #129 from multiversx/header-test-update
andreiblt1304 Oct 2, 2024
d0ac0ca
Framework upgrade to 0.53.1
andreiblt1304 Oct 2, 2024
f28dc81
Merge pull request #131 from multiversx/fw-upgrade
andreiblt1304 Oct 2, 2024
da2e728
Added more asserts
andreiblt1304 Oct 2, 2024
a60a531
Fixed assertion
andreiblt1304 Oct 2, 2024
8dcf7c8
Removed mocked signature
andreiblt1304 Oct 2, 2024
2fc2e2a
Test fixes and new tests
andreiblt1304 Oct 2, 2024
8cddd27
Removed into
andreiblt1304 Oct 2, 2024
b810afb
Modified endpoint to check for operation hash before removing + test …
andreiblt1304 Oct 4, 2024
4075b80
Added more asserts
andreiblt1304 Oct 4, 2024
3b96482
Fixed assertion
andreiblt1304 Oct 4, 2024
94b13ea
Removed require
andreiblt1304 Oct 4, 2024
eea269e
Modified setup for removal of executed hash
andreiblt1304 Oct 4, 2024
bc2d373
add fee-market blackbox tests
sergiuosvat Oct 7, 2024
876fce9
WIP test fixes
andreiblt1304 Oct 7, 2024
4d7d915
fixes after review
sergiuosvat Oct 7, 2024
ec62c0d
Merge pull request #136 from multiversx/fee-market-blackbox
sergiuosvat Oct 8, 2024
d744800
Final test fixes
andreiblt1304 Oct 8, 2024
c262999
Merge branch 'enshrine-esdt' into header-test-update
andreiblt1304 Oct 8, 2024
f6e1b9c
Merge pull request #133 from multiversx/header-test-update
andreiblt1304 Oct 8, 2024
cdae846
init esdt-safe interactor
sergiuosvat Oct 8, 2024
7991de7
Added trimming for hashing
andreiblt1304 Oct 9, 2024
9a997f7
Merge pull request #139 from multiversx/header-test-update
andreiblt1304 Oct 9, 2024
e7138fc
Merge branch 'main' into enshrine-esdt
andreiblt1304 Oct 9, 2024
7b52987
Used the dedicated `cloned()` method
andreiblt1304 Oct 9, 2024
b3230eb
Clippy fixes
andreiblt1304 Oct 9, 2024
41d2d9d
TransferTokens Module updates
andreiblt1304 Oct 9, 2024
020b8a3
Added custom type for deposit endpoint
andreiblt1304 Oct 9, 2024
30810b8
Added custom result type
andreiblt1304 Oct 9, 2024
3455984
Added more custom types and variable traits
andreiblt1304 Oct 9, 2024
fc8dac2
More cleanup for readibility
andreiblt1304 Oct 10, 2024
5a2eaa1
Esdt-Safe cleanup
andreiblt1304 Oct 10, 2024
f89499d
Removed unused custom type
andreiblt1304 Oct 10, 2024
9f0031e
Added EsdtSystemProxy calls with callbacks
andreiblt1304 Oct 10, 2024
1699bbb
Added callbacks and mapping corresponding token ids
andreiblt1304 Oct 10, 2024
455ef52
Reverted general callback trait name
andreiblt1304 Oct 10, 2024
fd0fd4e
Added TODO
andreiblt1304 Oct 10, 2024
24c2ce1
Merge branch 'esdt-safe-update' into token-issue-fix
andreiblt1304 Oct 10, 2024
24595a8
Added use or args field
andreiblt1304 Oct 10, 2024
64696f8
Removed clone
andreiblt1304 Oct 10, 2024
2728b88
Added back if statement
andreiblt1304 Oct 10, 2024
5b06b15
Fix after review
andreiblt1304 Oct 10, 2024
daf49c0
Fix after review
andreiblt1304 Oct 10, 2024
0e1005e
Merge pull request #140 from multiversx/clippy-fixes
andreiblt1304 Oct 10, 2024
64ad075
Build contracts
andreiblt1304 Oct 10, 2024
2ea60b2
Added require for token prefix
andreiblt1304 Oct 11, 2024
9c8143c
Standardized struct and issue handle function
andreiblt1304 Oct 11, 2024
11b951b
Modified mapper logic
andreiblt1304 Oct 11, 2024
c1116c0
Added if mapper is empty instead of identifier validity check
andreiblt1304 Oct 11, 2024
9738418
Added EsdtSystemSCAddress
andreiblt1304 Oct 11, 2024
e7c2af0
Copied deposit logic from enshrine
andreiblt1304 Oct 11, 2024
74a079b
Added external storage mapper
andreiblt1304 Oct 11, 2024
80a0a8b
Removed unused import
andreiblt1304 Oct 11, 2024
2960ce4
Regenerated proxy
andreiblt1304 Oct 11, 2024
c56525f
Merge pull request #141 from multiversx/esdt-safe-update
andreiblt1304 Oct 11, 2024
5855570
Renamed mappers
andreiblt1304 Oct 11, 2024
b8d6bb4
Modified burn logic in esdt safe
andreiblt1304 Oct 11, 2024
2bc1130
Removed unused function
andreiblt1304 Oct 11, 2024
8b5fd46
Added `take()`
andreiblt1304 Oct 11, 2024
4dd7485
Used camel case for storage mapper alias
andreiblt1304 Oct 11, 2024
b6c8c9d
Added function to update esdt_info_mappers
andreiblt1304 Oct 11, 2024
e03393b
Fixed build error
andreiblt1304 Oct 11, 2024
77115bb
Moved update mapper function to token_mappings module
andreiblt1304 Oct 11, 2024
710f977
Merge branch 'enshrine-esdt' into token-issue-fix
andreiblt1304 Oct 11, 2024
91bd730
Removed unused import
andreiblt1304 Oct 11, 2024
56768c9
Added EventPayment traits + implementation
andreiblt1304 Oct 11, 2024
ed2f9eb
Added newline
andreiblt1304 Oct 11, 2024
ba530dc
Removed old tests
andreiblt1304 Oct 11, 2024
8ddd30f
Modified deposit logic
andreiblt1304 Oct 11, 2024
47e64ca
0.53.2 upgrade
andreiblt1304 Oct 14, 2024
73f3455
Merge pull request #143 from multiversx/fw-upgrade
andreiblt1304 Oct 14, 2024
dc4d7ef
Merge branch 'enshrine-esdt' into token-issue-fix
andreiblt1304 Oct 14, 2024
1ad1aec
init and few interactor tests for esdt
sergiuosvat Oct 14, 2024
efa94af
Merge branch 'enshrine-esdt' of https://github.com/multiversx/mx-sove…
sergiuosvat Oct 14, 2024
001182f
fix versions for interactor
sergiuosvat Oct 14, 2024
1be73aa
update proxy
sergiuosvat Oct 14, 2024
c162eb3
Reverted use of PaymentEvent struct
andreiblt1304 Oct 14, 2024
54356ec
Modified mint logic
andreiblt1304 Oct 14, 2024
3bc8617
update interactor setup
sergiuosvat Oct 14, 2024
df30d75
fixes after testing
axenteoctavian Oct 14, 2024
98fe36a
esdt-safe interactor cleanup
sergiuosvat Oct 15, 2024
d3efa85
build all contracts
sergiuosvat Oct 15, 2024
3b02cd8
Merge pull request #144 from multiversx/esdt-safe-interactor
andreiblt1304 Oct 15, 2024
3f4c644
Modified Nft Create call and used `payment` instead of `multi_esdt`
andreiblt1304 Oct 15, 2024
8b12016
Updated proxy
andreiblt1304 Oct 15, 2024
4829d53
Merge pull request #145 from multiversx/fixes-14-oct
andreiblt1304 Oct 15, 2024
45be034
Merge branch 'enshrine-esdt' into token-issue-fix
andreiblt1304 Oct 15, 2024
fc30225
Updated interactor proxy
andreiblt1304 Oct 15, 2024
694b17c
Added amount addition in case of SFT or Meta token
andreiblt1304 Oct 15, 2024
010fc37
Added logic to only remove from mapper if token NFT
andreiblt1304 Oct 15, 2024
9ee671e
Moved `inline` function to `TokenMappingModule`
andreiblt1304 Oct 15, 2024
0ce7495
Updated `burn_mainchain_token` mapper clearing logic
andreiblt1304 Oct 15, 2024
48b75ee
More fixes after review
andreiblt1304 Oct 15, 2024
26107a7
Added function call
andreiblt1304 Oct 15, 2024
d9a14dd
Removed TODO
andreiblt1304 Oct 15, 2024
cc0c991
Added new folder for proxies
andreiblt1304 Oct 15, 2024
25b12d6
Added WIP interact register operation function
andreiblt1304 Oct 15, 2024
409940a
Moved `price_aggregator_address` from init to endpoint
andreiblt1304 Oct 15, 2024
404cd05
Test fixes
andreiblt1304 Oct 15, 2024
e139b89
Merge pull request #142 from multiversx/token-issue-fix
andreiblt1304 Oct 15, 2024
162f222
Merge branch 'enshrine-esdt' into remove-init-arg
andreiblt1304 Oct 15, 2024
1f203db
Merge branch 'enshrine-esdt' into interactor-tests
andreiblt1304 Oct 15, 2024
e0c1c89
Moved endpoint under `upgrade`
andreiblt1304 Oct 15, 2024
01cc3a4
Added `register_operation` setup
andreiblt1304 Oct 16, 2024
0bbc088
Merge pull request #146 from multiversx/remove-init-arg
andreiblt1304 Oct 16, 2024
801758c
More fixes
andreiblt1304 Oct 16, 2024
a984615
Modified logic for `TokenMappingModule`
andreiblt1304 Oct 16, 2024
56f75d8
Modified `from_sovereign` mappers logic
andreiblt1304 Oct 16, 2024
0bcd4aa
Added fixes for 1 failing test
andreiblt1304 Oct 16, 2024
35ab88a
Reverted `arg_buffer` logic
andreiblt1304 Oct 16, 2024
ac407bc
Modified expected error message
andreiblt1304 Oct 16, 2024
6132b49
Added note
andreiblt1304 Oct 16, 2024
21ea4a7
Added test ignore and dead code warning for interactor setup
andreiblt1304 Oct 16, 2024
3583176
Merge pull request #148 from multiversx/test-fixes
andreiblt1304 Oct 16, 2024
6c7f268
Merge branch 'feat/enshrine-esdt' into token-mapping-fixes
andreiblt1304 Oct 16, 2024
4895da6
Added `token_type` to `burn_mainchain_token` function
andreiblt1304 Oct 16, 2024
b10b24f
Small fixes
andreiblt1304 Oct 16, 2024
9289dc3
Merge pull request #147 from multiversx/token-mapping-fixes
andreiblt1304 Oct 16, 2024
c0e00e2
Removed use of ExpectError struct in `deposit` tests
andreiblt1304 Oct 16, 2024
1b96d1d
Removed used of ExpectError for `register_tokens`
andreiblt1304 Oct 16, 2024
04bc5ba
Removed all references for `ErrorStatus` struct
andreiblt1304 Oct 16, 2024
f6bfe3d
Removed use of `ErrorStatus` struct
andreiblt1304 Oct 16, 2024
97b01be
Merge pull request #149 from multiversx/test-cleanup
andreiblt1304 Oct 17, 2024
e3fe9e2
Merge branch 'feat/enshrine-esdt' into interactor-tests
andreiblt1304 Oct 17, 2024
10f3a63
WIP test fixes
andreiblt1304 Oct 17, 2024
c1c4928
Removed unused imports
andreiblt1304 Oct 17, 2024
9a46e12
Fixed build file name error
andreiblt1304 Oct 18, 2024
399d3c1
Built files
andreiblt1304 Oct 18, 2024
7a7a620
Interactor new code files
andreiblt1304 Oct 18, 2024
79d615c
Added arguments for `register_operation` and `execute_operation`
andreiblt1304 Oct 18, 2024
4321235
Modified paths setup to pick corect output files
andreiblt1304 Oct 18, 2024
e6e7ed3
Esdt-Safe output file fix
andreiblt1304 Oct 18, 2024
f414ff8
Fixed operation not registered error
andreiblt1304 Oct 18, 2024
22b4c91
Added function to register esdt_safe address in header_verifier
andreiblt1304 Oct 18, 2024
1fefe88
Renamed test
andreiblt1304 Oct 18, 2024
f11d6b4
Added getters for addresses
andreiblt1304 Oct 18, 2024
e2f7628
Removed transfer_data setup from payments_setup function
andreiblt1304 Oct 18, 2024
6c21d77
WIP `OperationData` setup
andreiblt1304 Oct 18, 2024
3c329d9
Added use of getter for `fee_market` address
andreiblt1304 Oct 18, 2024
fe75b7e
Generated sc for testing
andreiblt1304 Oct 18, 2024
2c7ec2d
Added testing-sc to workspace
andreiblt1304 Oct 18, 2024
ca0cf8b
Added setup for `testing_sc`
andreiblt1304 Oct 18, 2024
cfc6eaa
Added proxy generation for `testing_sc`
andreiblt1304 Oct 18, 2024
a10c0dc
Added `testing_sc` deploy function
andreiblt1304 Oct 18, 2024
04df5ee
Added `call_hello_endpoint`
andreiblt1304 Oct 18, 2024
7d1956a
Used getter for adresses
andreiblt1304 Oct 18, 2024
fb57d3f
Removed commented code
andreiblt1304 Oct 18, 2024
aa1ef92
Added payments vec to use as transfer
andreiblt1304 Oct 18, 2024
c78ec45
Added call for the testing_sc contract
andreiblt1304 Oct 18, 2024
4e878ee
Other fixes
andreiblt1304 Oct 21, 2024
f258d0f
Fixed setup for bridge op execution
andreiblt1304 Oct 21, 2024
d837c9d
Modified arg to fit testing sc endpoint needs
andreiblt1304 Oct 21, 2024
a7b6bfb
Added tracer for debugging
andreiblt1304 Oct 22, 2024
ab58927
Small endpoint fixes
andreiblt1304 Oct 23, 2024
7bdd9b3
Fixed interactor error
andreiblt1304 Oct 23, 2024
8c70071
Fixed fee-market tests
andreiblt1304 Oct 23, 2024
e4a15b8
Merge pull request #156 from multiversx/fee-fixes
andreiblt1304 Oct 23, 2024
b8e50e0
Added rust mandos test
andreiblt1304 Oct 24, 2024
614d8a5
Removed empty junk file
andreiblt1304 Oct 24, 2024
d02ea74
Fixed callback issue for `execute_operation`
andreiblt1304 Oct 25, 2024
53be622
Merge pull request #158 from multiversx/burn-fix
andreiblt1304 Oct 25, 2024
d827fc5
Merge branch 'feat/enshrine-esdt' into interactor-tests
andreiblt1304 Oct 25, 2024
7a47b71
Used framework function to find current workspace dir
andreiblt1304 Oct 25, 2024
64c8825
Removed `price_aggregator` call
andreiblt1304 Oct 25, 2024
00662c5
Added pending flag
andreiblt1304 Oct 29, 2024
f3824e7
Added logic for flag check and update in function
andreiblt1304 Oct 29, 2024
06a1818
Typo
andreiblt1304 Oct 29, 2024
717c98d
Modified pending flag for operation execution
andreiblt1304 Oct 29, 2024
6d1dbeb
Used corect endpoint name
andreiblt1304 Oct 29, 2024
15be74b
Removed unused function
andreiblt1304 Oct 29, 2024
dc2e50a
Removed unused mapper
andreiblt1304 Oct 29, 2024
0e83400
Added `clear` instead of `set`
andreiblt1304 Oct 29, 2024
61c92f4
Added require to check if operation is in execution
andreiblt1304 Oct 29, 2024
a2547fc
Renamed mapper + proxy regen
andreiblt1304 Oct 29, 2024
71dfbef
Test fixes
andreiblt1304 Oct 29, 2024
0e09b70
Fix after review
andreiblt1304 Oct 29, 2024
6f86413
Removed struct
andreiblt1304 Oct 29, 2024
276c55d
Added enum to check if operation is locked or not
andreiblt1304 Oct 29, 2024
5065642
Fixed tests
andreiblt1304 Oct 29, 2024
b6a0ea2
Added same logic for `enshrine-esdt`
andreiblt1304 Oct 29, 2024
6dcdc58
Fixed tests by registering ESDT address
andreiblt1304 Oct 29, 2024
fe69e29
Fixed ESDT Safe test
andreiblt1304 Oct 29, 2024
727f004
Added unit tests for `lock_hash` endpoint
andreiblt1304 Oct 29, 2024
05631f1
Uncommented code and added asserts
andreiblt1304 Oct 30, 2024
e385b30
Renamed mapper and enum
andreiblt1304 Oct 31, 2024
78a313b
Modified tx gas constant
andreiblt1304 Oct 31, 2024
ef31150
Modified fee-market call to be sync
andreiblt1304 Oct 31, 2024
08e888a
Added `hash_of_hashes` mapper variable
andreiblt1304 Oct 31, 2024
0998833
Added `new()` for `OperationEsdtPayment` in ESDT-Safe
andreiblt1304 Oct 31, 2024
43a0c43
Merge pull request #162 from multiversx/pending-flag
andreiblt1304 Nov 4, 2024
ac2dfbf
Enshrine FW-upgrade
andreiblt1304 Nov 8, 2024
ab90c0d
Fixed interactor after fw upgrade
andreiblt1304 Nov 8, 2024
8817037
Merge pull request #167 from multiversx/fw-upgrade
andreiblt1304 Nov 11, 2024
403db4f
Merge branch 'feat/enshrine-esdt' into interactor-tests
andreiblt1304 Nov 11, 2024
9edbdc0
Cargo.lock update
andreiblt1304 Nov 11, 2024
eee2b5b
Removed `prepare_async` deprecated function
andreiblt1304 Nov 11, 2024
7eb323e
Fixed code after fw upgrade
andreiblt1304 Nov 11, 2024
9bfaefd
Fixed `esdt-safe` dir
andreiblt1304 Nov 11, 2024
80554e4
testing-sc fw upgrade
andreiblt1304 Nov 12, 2024
6e76b7c
Fixed interactor output files paths
andreiblt1304 Nov 12, 2024
fc2071d
Fixed failing test
andreiblt1304 Nov 12, 2024
8fb1762
Removed mandos test
andreiblt1304 Nov 12, 2024
bb2826b
Removed go mandos test
andreiblt1304 Nov 12, 2024
5739db6
Removed contract codes from the common folder
andreiblt1304 Nov 12, 2024
0b0b504
Modified structs wallet address field
andreiblt1304 Nov 12, 2024
b7fa35d
Merge pull request #151 from multiversx/interactor-tests
andreiblt1304 Nov 13, 2024
540e82d
Enshrine ESDT fw upgrade
andreiblt1304 Nov 14, 2024
e73b345
Merge pull request #176 from multiversx/enshrine-fw-upgrade
andreiblt1304 Nov 14, 2024
b670c6c
Merge branch 'feat/enshrine-esdt' into beta-enshrine-merge
andreiblt1304 Nov 14, 2024
99383b6
Updated proxy and cargo.lock
andreiblt1304 Nov 15, 2024
5c5601c
Merge pull request #177 from multiversx/beta-enshrine-merge
andreiblt1304 Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
resolver = "2"

members = [
"chain-config",
"chain-config/meta",
Expand All @@ -8,10 +9,15 @@ members = [
"esdt-safe",
"esdt-safe/interactor",
"esdt-safe/meta",
"esdt-safe/interactor",
"fee-market",
"fee-market/meta",
"header-verifier",
"header-verifier/meta",
"enshrine-esdt-safe",
"enshrine-esdt-safe/meta"
"enshrine-esdt-safe/meta",
"token-handler",
"token-handler/meta",
"testing-sc",
"testing-sc/meta",
]
22 changes: 22 additions & 0 deletions chain-factory/sc-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[settings]
main = "main"

[contracts.main]
name = "chain-factory"

[contracts.full]
name = "chain-factory-full"
add-unlabelled = true
add-labels = ["chain-factory-external-view"]

[contracts.view]
name = "chain-factory-view"
external-view = true
add-unlabelled = false
add-labels = ["chain-factory-external-view"]

[[proxy]]
path = "src/chain_factory_proxy.rs"

[[proxy]]
path = "../token-handler/src/chain_factory_proxy.rs"
204 changes: 204 additions & 0 deletions chain-factory/src/chain_factory_proxy.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
// Code generated by the multiversx-sc proxy generator. DO NOT EDIT.

////////////////////////////////////////////////////
////////////////// AUTO-GENERATED //////////////////
////////////////////////////////////////////////////

#![allow(dead_code)]
#![allow(clippy::all)]

use multiversx_sc::proxy_imports::*;

pub struct ChainFactoryContractProxy;

impl<Env, From, To, Gas> TxProxyTrait<Env, From, To, Gas> for ChainFactoryContractProxy
where
Env: TxEnv,
From: TxFrom<Env>,
To: TxTo<Env>,
Gas: TxGas<Env>,
{
type TxProxyMethods = ChainFactoryContractProxyMethods<Env, From, To, Gas>;

fn proxy_methods(self, tx: Tx<Env, From, To, (), Gas, (), ()>) -> Self::TxProxyMethods {
ChainFactoryContractProxyMethods { wrapped_tx: tx }
}
}

pub struct ChainFactoryContractProxyMethods<Env, From, To, Gas>
where
Env: TxEnv,
From: TxFrom<Env>,
To: TxTo<Env>,
Gas: TxGas<Env>,
{
wrapped_tx: Tx<Env, From, To, (), Gas, (), ()>,
}

#[rustfmt::skip]
impl<Env, From, Gas> ChainFactoryContractProxyMethods<Env, From, (), Gas>
where
Env: TxEnv,
Env::Api: VMApi,
From: TxFrom<Env>,
Gas: TxGas<Env>,
{
pub fn init<
Arg0: ProxyArg<ManagedAddress<Env::Api>>,
Arg1: ProxyArg<ManagedAddress<Env::Api>>,
Arg2: ProxyArg<BigUint<Env::Api>>,
>(
self,
validators_contract_address: Arg0,
chain_config_template: Arg1,
deploy_cost: Arg2,
) -> TxTypedDeploy<Env, From, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_deploy()
.argument(&validators_contract_address)
.argument(&chain_config_template)
.argument(&deploy_cost)
.original_result()
}
}

#[rustfmt::skip]
impl<Env, From, To, Gas> ChainFactoryContractProxyMethods<Env, From, To, Gas>
where
Env: TxEnv,
Env::Api: VMApi,
From: TxFrom<Env>,
To: TxTo<Env>,
Gas: TxGas<Env>,
{
pub fn upgrade(
self,
) -> TxTypedUpgrade<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_upgrade()
.original_result()
}
}

#[rustfmt::skip]
impl<Env, From, To, Gas> ChainFactoryContractProxyMethods<Env, From, To, Gas>
where
Env: TxEnv,
Env::Api: VMApi,
From: TxFrom<Env>,
To: TxTo<Env>,
Gas: TxGas<Env>,
{
pub fn deploy_sovereign_chain_config_contract<
Arg0: ProxyArg<usize>,
Arg1: ProxyArg<usize>,
Arg2: ProxyArg<BigUint<Env::Api>>,
Arg3: ProxyArg<MultiValueEncoded<Env::Api, MultiValue2<TokenIdentifier<Env::Api>, BigUint<Env::Api>>>>,
>(
self,
min_validators: Arg0,
max_validators: Arg1,
min_stake: Arg2,
additional_stake_required: Arg3,
) -> TxTypedCall<Env, From, To, (), Gas, ()> {
self.wrapped_tx
.raw_call("deploySovereignChainConfigContract")
.argument(&min_validators)
.argument(&max_validators)
.argument(&min_stake)
.argument(&additional_stake_required)
.original_result()
}

pub fn blacklist_sovereign_chain_sc<
Arg0: ProxyArg<ManagedAddress<Env::Api>>,
>(
self,
sc_address: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("blacklistSovereignChainSc")
.argument(&sc_address)
.original_result()
}

pub fn deploy_cost(
self,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, BigUint<Env::Api>> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("getDeployCost")
.original_result()
}

pub fn slash<
Arg0: ProxyArg<ManagedAddress<Env::Api>>,
Arg1: ProxyArg<BigUint<Env::Api>>,
>(
self,
validator_address: Arg0,
value: Arg1,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("slash")
.argument(&validator_address)
.argument(&value)
.original_result()
}

pub fn distribute_slashed<
Arg0: ProxyArg<MultiValueEncoded<Env::Api, MultiValue2<ManagedAddress<Env::Api>, BigUint<Env::Api>>>>,
>(
self,
dest_amount_pairs: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("distributeSlashed")
.argument(&dest_amount_pairs)
.original_result()
}

pub fn set_min_valid_signers<
Arg0: ProxyArg<u32>,
>(
self,
new_value: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("setMinValidSigners")
.argument(&new_value)
.original_result()
}

pub fn add_signers<
Arg0: ProxyArg<MultiValueEncoded<Env::Api, ManagedAddress<Env::Api>>>,
>(
self,
signers: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("addSigners")
.argument(&signers)
.original_result()
}

pub fn remove_signers<
Arg0: ProxyArg<MultiValueEncoded<Env::Api, ManagedAddress<Env::Api>>>,
>(
self,
signers: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("removeSigners")
.argument(&signers)
.original_result()
}
}
Loading
Loading