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

Integrated new contracts #356

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 13 additions & 13 deletions integrationTests/relayers/slowTests/framework/multiversxHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,36 +336,36 @@ func (handler *MultiversxHandler) wireWrapper(ctx context.Context) {
},
)
log.Info("Set in wrapper contract the safe contract", "transaction hash", hash, "status", txResult.Status)
}

// setBridgeProxyContractAddress
hash, txResult = handler.ChainSimulator.ScCall(
func (handler *MultiversxHandler) wireSafe(ctx context.Context) {
// setBridgedTokensWrapperAddress
hash, txResult := handler.ChainSimulator.ScCall(
ctx,
handler.OwnerKeys.MvxSk,
handler.WrapperAddress,
handler.SafeAddress,
zeroStringValue,
setCallsGasLimit,
setBridgeProxyContractAddressFunction,
setBridgedTokensWrapperAddressFunction,
[]string{
handler.ScProxyAddress.Hex(),
handler.WrapperAddress.Hex(),
},
)
log.Info("Set in wrapper contract the SC proxy contract", "transaction hash", hash, "status", txResult.Status)
}
log.Info("Set in safe contract the wrapper contract", "transaction hash", hash, "status", txResult.Status)

func (handler *MultiversxHandler) wireSafe(ctx context.Context) {
// setBridgedTokensWrapperAddress
hash, txResult := handler.ChainSimulator.ScCall(
//setBridgeProxyContractAddress
hash, txResult = handler.ChainSimulator.ScCall(
ctx,
handler.OwnerKeys.MvxSk,
handler.SafeAddress,
zeroStringValue,
setCallsGasLimit,
setBridgedTokensWrapperAddressFunction,
setBridgeProxyContractAddressFunction,
[]string{
handler.WrapperAddress.Hex(),
handler.ScProxyAddress.Hex(),
},
)
log.Info("Set in safe contract the wrapper contract", "transaction hash", hash, "status", txResult.Status)
log.Info("Set in safe contract the SC proxy contract", "transaction hash", hash, "status", txResult.Status)
}

func (handler *MultiversxHandler) changeOwners(ctx context.Context) {
Expand Down
Binary file modified integrationTests/relayers/slowTests/testdata/contracts/mvx/bridge-proxy.wasm
100644 → 100755
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,6 @@
{
"name": "to",
"type": "EthAddress"
},
{
"name": "opt_refunding_address",
"type": "optional<Address>",
"multi_arg": true
}
],
"outputs": []
Expand All @@ -193,19 +188,6 @@
],
"outputs": []
},
{
"name": "setBridgeProxyContractAddress",
"onlyOwner": true,
"mutability": "mutable",
"inputs": [
{
"name": "opt_new_address",
"type": "optional<Address>",
"multi_arg": true
}
],
"outputs": []
},
{
"name": "getUniversalBridgedTokenIds",
"mutability": "readonly",
Expand Down Expand Up @@ -273,16 +255,6 @@
}
]
},
{
"name": "getBridgeProxyContractAddress",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "Address"
}
]
},
{
"name": "pause",
"onlyOwner": true,
Expand Down
Binary file modified integrationTests/relayers/slowTests/testdata/contracts/mvx/bridged-tokens-wrapper.wasm
100644 → 100755
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"type": "EthAddress"
},
{
"name": "opt_refund_address",
"name": "opt_refunding_address",
"type": "optional<Address>",
"multi_arg": true
}
Expand Down Expand Up @@ -164,6 +164,19 @@
],
"outputs": []
},
{
"name": "setBridgeProxyContractAddress",
"onlyOwner": true,
"mutability": "mutable",
"inputs": [
{
"name": "opt_new_address",
"type": "optional<Address>",
"multi_arg": true
}
],
"outputs": []
},
{
"name": "withdrawRefundFeesForEthereum",
"onlyOwner": true,
Expand Down Expand Up @@ -286,6 +299,16 @@
}
]
},
{
"name": "getBridgeProxyContractAddress",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "Address"
}
]
},
{
"name": "setFeeEstimatorContractAddress",
"onlyOwner": true,
Expand Down Expand Up @@ -894,6 +917,26 @@
"type": "u64",
"indexed": true
},
{
"name": "from",
"type": "bytes",
"indexed": true
},
{
"name": "to",
"type": "bytes",
"indexed": true
},
{
"name": "token_id",
"type": "TokenIdentifier",
"indexed": true
},
{
"name": "amount",
"type": "BigUint",
"indexed": true
},
{
"name": "tx_id",
"type": "u64",
Expand Down
Binary file not shown.
Binary file modified integrationTests/relayers/slowTests/testdata/contracts/mvx/multi-transfer-esdt.wasm
100644 → 100755
Binary file not shown.
Binary file not shown.
Binary file modified integrationTests/relayers/slowTests/testdata/contracts/mvx/test-caller.wasm
100644 → 100755
Binary file not shown.
Loading