Skip to content

Commit

Permalink
[bridge] Update abi (#19483)
Browse files Browse the repository at this point in the history
## Description 

update bridge abi for the recent changes in solidity code 

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
longbowlu authored Sep 22, 2024
1 parent 1d4df7f commit 8451dd0
Show file tree
Hide file tree
Showing 8 changed files with 342 additions and 18 deletions.
2 changes: 2 additions & 0 deletions crates/sui-bridge-indexer/src/eth_bridge_indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ impl DataMapper<RawEthData, ProcessedTxnData> for EthDataMapper {
})
}
EthSuiBridgeEvents::PausedFilter(_)
| EthSuiBridgeEvents::ContractUpgradedFilter(_)
| EthSuiBridgeEvents::EmergencyOperationFilter(_)
| EthSuiBridgeEvents::UnpausedFilter(_)
| EthSuiBridgeEvents::UpgradedFilter(_)
| EthSuiBridgeEvents::InitializedFilter(_) => {
Expand Down
50 changes: 50 additions & 0 deletions crates/sui-bridge/abi/bridge_committee.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,56 @@
"name": "BlocklistUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "nonce",
"type": "uint64"
},
{
"indexed": false,
"internalType": "address[]",
"name": "updatedMembers",
"type": "address[]"
},
{
"indexed": false,
"internalType": "bool",
"name": "isBlocklisted",
"type": "bool"
}
],
"name": "BlocklistUpdatedV2",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "proxy",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "ContractUpgraded",
"type": "event"
},
{
"inputs": [
{
Expand Down
87 changes: 87 additions & 0 deletions crates/sui-bridge/abi/bridge_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@
"name": "AddressEmptyCode",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "proxy",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "ContractUpgraded",
"type": "event"
},
{
"inputs": [
{
Expand Down Expand Up @@ -109,6 +134,68 @@
"name": "TokenPriceUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "nonce",
"type": "uint64"
},
{
"indexed": false,
"internalType": "uint8",
"name": "tokenID",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint64",
"name": "tokenPrice",
"type": "uint64"
}
],
"name": "TokenPriceUpdatedV2",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "nonce",
"type": "uint64"
},
{
"indexed": false,
"internalType": "uint8[]",
"name": "tokenIDs",
"type": "uint8[]"
},
{
"indexed": false,
"internalType": "address[]",
"name": "tokenAddresses",
"type": "address[]"
},
{
"indexed": false,
"internalType": "uint8[]",
"name": "suiDecimals",
"type": "uint8[]"
},
{
"indexed": false,
"internalType": "uint64[]",
"name": "tokenPrices",
"type": "uint64[]"
}
],
"name": "TokensAddedV2",
"type": "event"
},
{
"inputs": [],
"name": "UPGRADE_INTERFACE_VERSION",
Expand Down
50 changes: 50 additions & 0 deletions crates/sui-bridge/abi/bridge_limiter.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@
"name": "AddressEmptyCode",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "proxy",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "ContractUpgraded",
"type": "event"
},
{
"inputs": [
{
Expand Down Expand Up @@ -87,6 +112,31 @@
"name": "LimitUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "nonce",
"type": "uint64"
},
{
"indexed": false,
"internalType": "uint8",
"name": "sourceChainID",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint64",
"name": "newLimit",
"type": "uint64"
}
],
"name": "LimitUpdatedV2",
"type": "event"
},
{
"inputs": [],
"name": "NotInitializing",
Expand Down
43 changes: 43 additions & 0 deletions crates/sui-bridge/abi/bridge_vault.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,33 @@
"stateMutability": "payable",
"type": "receive"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
}
],
"name": "AddressEmptyCode",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "AddressInsufficientBalance",
"type": "error"
},
{
"inputs": [],
"name": "FailedInnerCall",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -55,6 +82,22 @@
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "ReentrancyGuardReentrantCall",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "SafeERC20FailedOperation",
"type": "error"
},
{
"inputs": [],
"name": "owner",
Expand Down
Loading

0 comments on commit 8451dd0

Please sign in to comment.