Skip to content

Commit

Permalink
Merge pull request #9 from InjectiveLabs/peggy_types
Browse files Browse the repository at this point in the history
Update peggy types and bump sdk version
  • Loading branch information
albertchon authored Mar 17, 2021
2 parents e7b7d37 + ba41aed commit 23eaa6c
Show file tree
Hide file tree
Showing 25 changed files with 12,846 additions and 2,253 deletions.
30 changes: 26 additions & 4 deletions chain/peggy/types/abi_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const (
{ "internalType": "address[]", "name": "_destinations", "type": "address[]" },
{ "internalType": "uint256[]", "name": "_fees", "type": "uint256[]" },
{ "internalType": "uint256", "name": "_batchNonce", "type": "uint256" },
{ "internalType": "address", "name": "_tokenContract", "type": "address" }
{ "internalType": "address", "name": "_tokenContract", "type": "address" },
{ "internalType": "uint256", "name": "_batchTimeout", "type": "uint256" }
],
"outputs": [
{ "internalType": "bytes32", "name": "", "type": "bytes32" }
Expand All @@ -39,14 +40,35 @@ const (
"stateMutability": "pure",
"type": "function",
"inputs": [
{ "internalType": "bytes32", "name": "_peggyId", "type": "bytes32" },
{ "internalType": "bytes32", "name": "_checkpoint", "type": "bytes32" },
{ "internalType": "uint256", "name": "_valsetNonce", "type": "uint256" },
{ "internalType": "bytes32", "name": "_peggyId", "type": "bytes32" },
{ "internalType": "bytes32", "name": "_checkpoint", "type": "bytes32" },
{ "internalType": "uint256", "name": "_valsetNonce", "type": "uint256" },
{ "internalType": "address[]", "name": "_validators", "type": "address[]" },
{ "internalType": "uint256[]", "name": "_powers", "type": "uint256[]" }
],
"outputs": [
{ "internalType": "bytes32", "name": "", "type": "bytes32" }
]
}]`

// OutgoingLogicCallABIJSON checks the ETH ABI for compatability of the logic call message
OutgoingLogicCallABIJSON = `[{
"name": "checkpoint",
"outputs": [],
"stateMutability": "pure",
"type": "function",
"inputs": [
{ "internalType": "bytes32", "name": "_peggyId", "type": "bytes32" },
{ "internalType": "bytes32", "name": "_methodName", "type": "bytes32" },
{ "internalType": "uint256[]", "name": "_transferAmounts", "type": "uint256[]" },
{ "internalType": "address[]", "name": "_transferTokenContracts", "type": "address[]" },
{ "internalType": "uint256[]", "name": "_feeAmounts", "type": "uint256[]" },
{ "internalType": "address[]", "name": "_feeTokenContracts", "type": "address[]" },
{ "internalType": "address", "name": "_logicContractAddress", "type": "address" },
{ "internalType": "bytes", "name": "_payload", "type": "bytes" },
{ "internalType": "uint256", "name": "_timeout", "type": "uint256" },
{ "internalType": "bytes32", "name": "_invalidationId", "type": "bytes32" },
{ "internalType": "uint256", "name": "_invalidationNonce", "type": "uint256" }
]
}]`
)
Loading

0 comments on commit 23eaa6c

Please sign in to comment.