660 lines
12 KiB
JSON
660 lines
12 KiB
JSON
{
|
|
"deploy": {
|
|
"VM:-": {
|
|
"linkReferences": {},
|
|
"autoDeployLib": true
|
|
},
|
|
"main:1": {
|
|
"linkReferences": {},
|
|
"autoDeployLib": true
|
|
},
|
|
"ropsten:3": {
|
|
"linkReferences": {},
|
|
"autoDeployLib": true
|
|
},
|
|
"rinkeby:4": {
|
|
"linkReferences": {},
|
|
"autoDeployLib": true
|
|
},
|
|
"kovan:42": {
|
|
"linkReferences": {},
|
|
"autoDeployLib": true
|
|
},
|
|
"goerli:5": {
|
|
"linkReferences": {},
|
|
"autoDeployLib": true
|
|
},
|
|
"Custom": {
|
|
"linkReferences": {},
|
|
"autoDeployLib": true
|
|
}
|
|
},
|
|
"data": {
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"methodIdentifiers": {
|
|
"chainId()": "9a8a0592",
|
|
"getCurrentGuardianSetIndex()": "1cfe7951",
|
|
"getGuardianSet(uint32)": "f951975a",
|
|
"getGuardianSetExpiry()": "eb8d3f12",
|
|
"governanceActionIsConsumed(bytes32)": "2c3c02a4",
|
|
"governanceChainId()": "fbe3c2cd",
|
|
"governanceContract()": "b172b222",
|
|
"isInitialized(address)": "d60b347f",
|
|
"messageFee()": "1a90a219",
|
|
"parseAndVerifyVM(bytes)": "c0fd8bde",
|
|
"parseVM(bytes)": "a9e11893",
|
|
"publishMessage(uint32,bytes,uint8)": "b19a437e",
|
|
"verifySignatures(bytes32,(bytes32,bytes32,uint8,uint8)[],(address[],uint32))": "a0cce1b3",
|
|
"verifyVM((uint8,uint32,uint32,uint16,bytes32,uint64,uint8,bytes,uint32,(bytes32,bytes32,uint8,uint8)[],bytes32))": "875be02a"
|
|
}
|
|
},
|
|
"abi": [
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "sender",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint64",
|
|
"name": "sequence",
|
|
"type": "uint64"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint32",
|
|
"name": "nonce",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "bytes",
|
|
"name": "payload",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint8",
|
|
"name": "consistencyLevel",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"name": "LogMessagePublished",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "chainId",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getCurrentGuardianSetIndex",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "",
|
|
"type": "uint32"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "index",
|
|
"type": "uint32"
|
|
}
|
|
],
|
|
"name": "getGuardianSet",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "keys",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "expirationTime",
|
|
"type": "uint32"
|
|
}
|
|
],
|
|
"internalType": "struct Structs.GuardianSet",
|
|
"name": "",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getGuardianSetExpiry",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "",
|
|
"type": "uint32"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "hash",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "governanceActionIsConsumed",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "governanceChainId",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "governanceContract",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "impl",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "isInitialized",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "messageFee",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "encodedVM",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "parseAndVerifyVM",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "version",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "timestamp",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "nonce",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "emitterChainId",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "emitterAddress",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "uint64",
|
|
"name": "sequence",
|
|
"type": "uint64"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "consistencyLevel",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "payload",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "guardianSetIndex",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "r",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "s",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "v",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "guardianIndex",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"internalType": "struct Structs.Signature[]",
|
|
"name": "signatures",
|
|
"type": "tuple[]"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "hash",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"internalType": "struct Structs.VM",
|
|
"name": "vm",
|
|
"type": "tuple"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "valid",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "reason",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "encodedVM",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "parseVM",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "version",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "timestamp",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "nonce",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "emitterChainId",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "emitterAddress",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "uint64",
|
|
"name": "sequence",
|
|
"type": "uint64"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "consistencyLevel",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "payload",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "guardianSetIndex",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "r",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "s",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "v",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "guardianIndex",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"internalType": "struct Structs.Signature[]",
|
|
"name": "signatures",
|
|
"type": "tuple[]"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "hash",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"internalType": "struct Structs.VM",
|
|
"name": "vm",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "nonce",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "payload",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "consistencyLevel",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"name": "publishMessage",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint64",
|
|
"name": "sequence",
|
|
"type": "uint64"
|
|
}
|
|
],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "hash",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "r",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "s",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "v",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "guardianIndex",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"internalType": "struct Structs.Signature[]",
|
|
"name": "signatures",
|
|
"type": "tuple[]"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "keys",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "expirationTime",
|
|
"type": "uint32"
|
|
}
|
|
],
|
|
"internalType": "struct Structs.GuardianSet",
|
|
"name": "guardianSet",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"name": "verifySignatures",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "valid",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "reason",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "version",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "timestamp",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "nonce",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "emitterChainId",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "emitterAddress",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "uint64",
|
|
"name": "sequence",
|
|
"type": "uint64"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "consistencyLevel",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "payload",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "guardianSetIndex",
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "r",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "s",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "v",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "guardianIndex",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"internalType": "struct Structs.Signature[]",
|
|
"name": "signatures",
|
|
"type": "tuple[]"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "hash",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"internalType": "struct Structs.VM",
|
|
"name": "vm",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"name": "verifyVM",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "valid",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "reason",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
}
|
|
]
|
|
} |