Skip to content

Commit

Permalink
feat(relayer): bridge improvement (#16752)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Wang <99078276+dantaik@users.noreply.github.com>
  • Loading branch information
cyberhorsey and dantaik authored Apr 22, 2024
1 parent bb0c1ae commit ac93ace
Show file tree
Hide file tree
Showing 46 changed files with 1,858 additions and 3,565 deletions.
1,477 changes: 297 additions & 1,180 deletions packages/eventindexer/contracts/bridge/Bridge.go

Large diffs are not rendered by default.

118 changes: 44 additions & 74 deletions packages/relayer/ERC1155Vault.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,18 @@
"components": [
{
"name": "id",
"type": "uint128",
"internalType": "uint128"
"type": "uint64",
"internalType": "uint64"
},
{
"name": "fee",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "gasLimit",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "from",
Expand All @@ -249,28 +259,23 @@
"type": "uint64",
"internalType": "uint64"
},
{
"name": "destChainId",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "srcOwner",
"type": "address",
"internalType": "address"
},
{
"name": "destOwner",
"type": "address",
"internalType": "address"
"name": "destChainId",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "to",
"name": "destOwner",
"type": "address",
"internalType": "address"
},
{
"name": "refundTo",
"name": "to",
"type": "address",
"internalType": "address"
},
Expand All @@ -279,25 +284,10 @@
"type": "uint256",
"internalType": "uint256"
},
{
"name": "fee",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "memo",
"type": "string",
"internalType": "string"
}
]
},
Expand Down Expand Up @@ -453,11 +443,21 @@
"type": "address",
"internalType": "address"
},
{
"name": "fee",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "gasLimit",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "tokenIds",
"type": "uint256[]",
Expand All @@ -467,26 +467,6 @@
"name": "amounts",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "fee",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "refundTo",
"type": "address",
"internalType": "address"
},
{
"name": "memo",
"type": "string",
"internalType": "string"
}
]
}
Expand All @@ -499,8 +479,18 @@
"components": [
{
"name": "id",
"type": "uint128",
"internalType": "uint128"
"type": "uint64",
"internalType": "uint64"
},
{
"name": "fee",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "gasLimit",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "from",
Expand All @@ -512,28 +502,23 @@
"type": "uint64",
"internalType": "uint64"
},
{
"name": "destChainId",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "srcOwner",
"type": "address",
"internalType": "address"
},
{
"name": "destOwner",
"type": "address",
"internalType": "address"
"name": "destChainId",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "to",
"name": "destOwner",
"type": "address",
"internalType": "address"
},
{
"name": "refundTo",
"name": "to",
"type": "address",
"internalType": "address"
},
Expand All @@ -542,25 +527,10 @@
"type": "uint256",
"internalType": "uint256"
},
{
"name": "fee",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "memo",
"type": "string",
"internalType": "string"
}
]
}
Expand Down
Loading

0 comments on commit ac93ace

Please sign in to comment.