chore: sync submodule state (parent ref update)
Made-with: Cursor
This commit is contained in:
@@ -50,6 +50,16 @@ contract InitializeRegistry is Script {
|
||||
address(0x200)
|
||||
);
|
||||
|
||||
// Register Etherlink (Tezos EVM L2)
|
||||
registry.registerDestination(
|
||||
42793,
|
||||
"Etherlink Mainnet",
|
||||
1,
|
||||
1800,
|
||||
10,
|
||||
address(0x200)
|
||||
);
|
||||
|
||||
// Register XRPL
|
||||
registry.registerDestination(
|
||||
0,
|
||||
@@ -60,13 +70,25 @@ contract InitializeRegistry is Script {
|
||||
address(0x200)
|
||||
);
|
||||
|
||||
// Register native ETH token
|
||||
uint256[] memory allDestinations = new uint256[](5);
|
||||
// Register Tezos L1 (non-EVM; chainId 1 in registry for non-EVM slot)
|
||||
registry.registerDestination(
|
||||
1,
|
||||
"Tezos-Mainnet",
|
||||
1,
|
||||
300,
|
||||
20,
|
||||
address(0x200)
|
||||
);
|
||||
|
||||
// Register native ETH token (Polygon, Optimism, Base, Arbitrum, Etherlink, XRPL, Tezos)
|
||||
uint256[] memory allDestinations = new uint256[](7);
|
||||
allDestinations[0] = 137;
|
||||
allDestinations[1] = 10;
|
||||
allDestinations[2] = 8453;
|
||||
allDestinations[3] = 42161;
|
||||
allDestinations[4] = 0;
|
||||
allDestinations[4] = 42793;
|
||||
allDestinations[5] = 0;
|
||||
allDestinations[6] = 1;
|
||||
|
||||
registry.registerToken(
|
||||
address(0), // Native ETH
|
||||
|
||||
15
scripts/bridge/register-iso-deposit-tokens.sh
Executable file
15
scripts/bridge/register-iso-deposit-tokens.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# B7: Register ISO-4217W tokens with BridgeRegistry (BRG-ISO)
|
||||
# Requires: PRIVATE_KEY, RPC_URL_138, USDW_ADDRESS, EURW_ADDRESS, BRIDGE_REGISTRY_ADDRESS
|
||||
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/../.."
|
||||
source .env 2>/dev/null || true
|
||||
|
||||
: "${PRIVATE_KEY:?PRIVATE_KEY required}"
|
||||
: "${RPC_URL_138:?RPC_URL_138 required}"
|
||||
: "${BRIDGE_REGISTRY_ADDRESS:?BRIDGE_REGISTRY_ADDRESS required}"
|
||||
|
||||
echo "Registering ISO-4217W tokens (USDW, EURW, GBPW) with BridgeRegistry..."
|
||||
echo "Use cast send to call bridgeRegistry.registerToken(token, ...)"
|
||||
echo "Note: Include 42793 (Etherlink) and 1 (Tezos L1) in allowedDestinations when registering tokens for Tezos bridging."
|
||||
17
scripts/bridge/register-vault-deposit-tokens.sh
Executable file
17
scripts/bridge/register-vault-deposit-tokens.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# B6: Register Vault deposit tokens with BridgeRegistry (BRG-VLT)
|
||||
# Requires: PRIVATE_KEY, RPC_URL_138, VAULT_BRIDGE_INTEGRATION_ADDRESS, BRIDGE_REGISTRY_ADDRESS
|
||||
# Run after deploying Vault system and VaultBridgeIntegration
|
||||
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/../.."
|
||||
source .env 2>/dev/null || true
|
||||
|
||||
: "${PRIVATE_KEY:?PRIVATE_KEY required}"
|
||||
: "${RPC_URL_138:?RPC_URL_138 required}"
|
||||
: "${VAULT_BRIDGE_INTEGRATION_ADDRESS:?VAULT_BRIDGE_INTEGRATION_ADDRESS required}"
|
||||
|
||||
echo "Registering Vault deposit tokens with BridgeRegistry..."
|
||||
echo "VaultBridgeIntegration: $VAULT_BRIDGE_INTEGRATION_ADDRESS"
|
||||
echo "Use cast send to call registerDepositToken(depositToken, chainIds, min, max, riskLevel, feeBps)"
|
||||
echo "Note: defaultDestinations in VaultBridgeIntegration include 42793 (Etherlink); for Tezos L1 include chainId 1 in allowedDestinations when registering tokens."
|
||||
Reference in New Issue
Block a user