2934 lines
92 KiB
JSON
2934 lines
92 KiB
JSON
{
|
|
"id": "d725ee970ebdee01e5f6bd81a820f906",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.26",
|
|
"solcLongVersion": "0.8.26+commit.8a97fa7a",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/messaging/IWormhole.sol": {
|
|
"content": "// contracts/Messages.sol\n// SPDX-License-Identifier: Apache 2\n\npragma solidity ^0.8.26;\n\n\nimport \"./Structs.sol\";\n\ninterface IWormhole is Structs {\n event LogMessagePublished(address indexed sender, uint64 sequence, uint32 nonce, bytes payload, uint8 consistencyLevel);\n\n function publishMessage(\n uint32 nonce,\n bytes memory payload,\n uint8 consistencyLevel\n ) external payable returns (uint64 sequence);\n\n function parseAndVerifyVM(bytes calldata encodedVM) external view returns (Structs.VM memory vm, bool valid, string memory reason);\n\n function verifyVM(Structs.VM memory vm) external view returns (bool valid, string memory reason);\n\n function verifySignatures(bytes32 hash, Structs.Signature[] memory signatures, Structs.GuardianSet memory guardianSet) external pure returns (bool valid, string memory reason) ;\n\n function parseVM(bytes memory encodedVM) external pure returns (Structs.VM memory vm);\n\n function getGuardianSet(uint32 index) external view returns (Structs.GuardianSet memory) ;\n\n function getCurrentGuardianSetIndex() external view returns (uint32) ;\n\n function getGuardianSetExpiry() external view returns (uint32) ;\n\n function governanceActionIsConsumed(bytes32 hash) external view returns (bool) ;\n\n function isInitialized(address impl) external view returns (bool) ;\n\n function chainId() external view returns (uint16) ;\n\n function governanceChainId() external view returns (uint16);\n\n function governanceContract() external view returns (bytes32);\n\n function messageFee() external view returns (uint256) ;\n}"
|
|
},
|
|
"contracts/messaging/Structs.sol": {
|
|
"content": "// contracts/Structs.sol\n// SPDX-License-Identifier: Apache 2\n\npragma solidity ^0.8.26;\n\n\ninterface Structs {\n\tstruct Provider {\n\t\tuint16 chainId;\n\t\tuint16 governanceChainId;\n\t\tbytes32 governanceContract;\n\t}\n\n\tstruct GuardianSet {\n\t\taddress[] keys;\n\t\tuint32 expirationTime;\n\t}\n\n\tstruct Signature {\n\t\tbytes32 r;\n\t\tbytes32 s;\n\t\tuint8 v;\n\t\tuint8 guardianIndex;\n\t}\n\n\tstruct VM {\n\t\tuint8 version;\n\t\tuint32 timestamp;\n\t\tuint32 nonce;\n\t\tuint16 emitterChainId;\n\t\tbytes32 emitterAddress;\n\t\tuint64 sequence;\n\t\tuint8 consistencyLevel;\n\t\tbytes payload;\n\n\t\tuint32 guardianSetIndex;\n\t\tSignature[] signatures;\n\n\t\tbytes32 hash;\n\t}\n}"
|
|
}
|
|
},
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": false,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"": [
|
|
"ast"
|
|
],
|
|
"*": [
|
|
"abi",
|
|
"metadata",
|
|
"devdoc",
|
|
"userdoc",
|
|
"storageLayout",
|
|
"evm.legacyAssembly",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers",
|
|
"evm.gasEstimates",
|
|
"evm.assembly"
|
|
]
|
|
}
|
|
},
|
|
"remappings": []
|
|
}
|
|
},
|
|
"output": {
|
|
"contracts": {
|
|
"contracts/messaging/IWormhole.sol": {
|
|
"IWormhole": {
|
|
"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"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": 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"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"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\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/messaging/IWormhole.sol\":\"IWormhole\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/messaging/IWormhole.sol\":{\"keccak256\":\"0x2966ae79be50ad14ee34f2ef750e8820f5933a5121deb03b851c94c4d6f274d3\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://e38f0fda64a83949f03b3997a28525e2dd097a4d08a127a9f30e01180c254f0e\",\"dweb:/ipfs/QmXaHKBy9oAMdyzd3zAMApYumMBwkeRZhWFrytPEN6ia2n\"]},\"contracts/messaging/Structs.sol\":{\"keccak256\":\"0x5e75a087f74d8de0ca18e8e5ab2cff988d4e20bb643a51e08e2a70540334a53a\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://ef3509efdd2065f7c0a01e9463fb66ea5c021a01bad6e115f39ecfcb074ff1f3\",\"dweb:/ipfs/QmdYAwANELc9D9ePCfpBwYE78nVdfMc2uM9CDSqMmsfVzM\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
},
|
|
"contracts/messaging/Structs.sol": {
|
|
"Structs": {
|
|
"abi": [],
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": null,
|
|
"methodIdentifiers": {}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/messaging/Structs.sol\":\"Structs\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/messaging/Structs.sol\":{\"keccak256\":\"0x5e75a087f74d8de0ca18e8e5ab2cff988d4e20bb643a51e08e2a70540334a53a\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://ef3509efdd2065f7c0a01e9463fb66ea5c021a01bad6e115f39ecfcb074ff1f3\",\"dweb:/ipfs/QmdYAwANELc9D9ePCfpBwYE78nVdfMc2uM9CDSqMmsfVzM\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"contracts/messaging/IWormhole.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/messaging/IWormhole.sol",
|
|
"exportedSymbols": {
|
|
"IWormhole": [
|
|
126
|
|
],
|
|
"Structs": [
|
|
176
|
|
]
|
|
},
|
|
"id": 127,
|
|
"license": "Apache 2",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".26"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "64:24:0"
|
|
},
|
|
{
|
|
"absolutePath": "contracts/messaging/Structs.sol",
|
|
"file": "./Structs.sol",
|
|
"id": 2,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 127,
|
|
"sourceUnit": 177,
|
|
"src": "91:23:0",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [
|
|
{
|
|
"baseName": {
|
|
"id": 3,
|
|
"name": "Structs",
|
|
"nameLocations": [
|
|
"139:7:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 176,
|
|
"src": "139:7:0"
|
|
},
|
|
"id": 4,
|
|
"nodeType": "InheritanceSpecifier",
|
|
"src": "139:7:0"
|
|
}
|
|
],
|
|
"canonicalName": "IWormhole",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 126,
|
|
"linearizedBaseContracts": [
|
|
126,
|
|
176
|
|
],
|
|
"name": "IWormhole",
|
|
"nameLocation": "126:9:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"anonymous": false,
|
|
"eventSelector": "6eb224fb001ed210e379b335e35efe88672a8ce935d981a6896b27ffdf52a3b2",
|
|
"id": 16,
|
|
"name": "LogMessagePublished",
|
|
"nameLocation": "159:19:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 15,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 6,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "sender",
|
|
"nameLocation": "195:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 16,
|
|
"src": "179:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 5,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "179:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 8,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "sequence",
|
|
"nameLocation": "210:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 16,
|
|
"src": "203:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint64",
|
|
"typeString": "uint64"
|
|
},
|
|
"typeName": {
|
|
"id": 7,
|
|
"name": "uint64",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "203:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint64",
|
|
"typeString": "uint64"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 10,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "nonce",
|
|
"nameLocation": "227:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 16,
|
|
"src": "220:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 9,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "220:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 12,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "payload",
|
|
"nameLocation": "240:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 16,
|
|
"src": "234:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 11,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "234:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 14,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "consistencyLevel",
|
|
"nameLocation": "255:16:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 16,
|
|
"src": "249:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 13,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "249:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "178:94:0"
|
|
},
|
|
"src": "153:120:0"
|
|
},
|
|
{
|
|
"functionSelector": "b19a437e",
|
|
"id": 27,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "publishMessage",
|
|
"nameLocation": "288:14:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 23,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 18,
|
|
"mutability": "mutable",
|
|
"name": "nonce",
|
|
"nameLocation": "319:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 27,
|
|
"src": "312:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 17,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "312:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 20,
|
|
"mutability": "mutable",
|
|
"name": "payload",
|
|
"nameLocation": "347:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 27,
|
|
"src": "334:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 19,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "334:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 22,
|
|
"mutability": "mutable",
|
|
"name": "consistencyLevel",
|
|
"nameLocation": "370:16:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 27,
|
|
"src": "364:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 21,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "364:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "302:90:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 26,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 25,
|
|
"mutability": "mutable",
|
|
"name": "sequence",
|
|
"nameLocation": "426:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 27,
|
|
"src": "419:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint64",
|
|
"typeString": "uint64"
|
|
},
|
|
"typeName": {
|
|
"id": 24,
|
|
"name": "uint64",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "419:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint64",
|
|
"typeString": "uint64"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "418:17:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "279:157:0",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "c0fd8bde",
|
|
"id": 39,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "parseAndVerifyVM",
|
|
"nameLocation": "451:16:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 30,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 29,
|
|
"mutability": "mutable",
|
|
"name": "encodedVM",
|
|
"nameLocation": "483:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 39,
|
|
"src": "468:24:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 28,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "468:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "467:26:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 38,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 33,
|
|
"mutability": "mutable",
|
|
"name": "vm",
|
|
"nameLocation": "535:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 39,
|
|
"src": "517:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_VM_$175_memory_ptr",
|
|
"typeString": "struct Structs.VM"
|
|
},
|
|
"typeName": {
|
|
"id": 32,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 31,
|
|
"name": "Structs.VM",
|
|
"nameLocations": [
|
|
"517:7:0",
|
|
"525:2:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 175,
|
|
"src": "517:10:0"
|
|
},
|
|
"referencedDeclaration": 175,
|
|
"src": "517:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_VM_$175_storage_ptr",
|
|
"typeString": "struct Structs.VM"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 35,
|
|
"mutability": "mutable",
|
|
"name": "valid",
|
|
"nameLocation": "544:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 39,
|
|
"src": "539:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 34,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "539:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 37,
|
|
"mutability": "mutable",
|
|
"name": "reason",
|
|
"nameLocation": "565:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 39,
|
|
"src": "551:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 36,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "551:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "516:56:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "442:131:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "875be02a",
|
|
"id": 49,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "verifyVM",
|
|
"nameLocation": "588:8:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 43,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 42,
|
|
"mutability": "mutable",
|
|
"name": "vm",
|
|
"nameLocation": "615:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 49,
|
|
"src": "597:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_VM_$175_memory_ptr",
|
|
"typeString": "struct Structs.VM"
|
|
},
|
|
"typeName": {
|
|
"id": 41,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 40,
|
|
"name": "Structs.VM",
|
|
"nameLocations": [
|
|
"597:7:0",
|
|
"605:2:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 175,
|
|
"src": "597:10:0"
|
|
},
|
|
"referencedDeclaration": 175,
|
|
"src": "597:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_VM_$175_storage_ptr",
|
|
"typeString": "struct Structs.VM"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "596:22:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 48,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 45,
|
|
"mutability": "mutable",
|
|
"name": "valid",
|
|
"nameLocation": "647:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 49,
|
|
"src": "642:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 44,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "642:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 47,
|
|
"mutability": "mutable",
|
|
"name": "reason",
|
|
"nameLocation": "668:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 49,
|
|
"src": "654:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 46,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "654:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "641:34:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "579:97:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "a0cce1b3",
|
|
"id": 65,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "verifySignatures",
|
|
"nameLocation": "691:16:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 59,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 51,
|
|
"mutability": "mutable",
|
|
"name": "hash",
|
|
"nameLocation": "716:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 65,
|
|
"src": "708:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 50,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "708:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 55,
|
|
"mutability": "mutable",
|
|
"name": "signatures",
|
|
"nameLocation": "749:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 65,
|
|
"src": "722:37:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_Signature_$150_memory_ptr_$dyn_memory_ptr",
|
|
"typeString": "struct Structs.Signature[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 53,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 52,
|
|
"name": "Structs.Signature",
|
|
"nameLocations": [
|
|
"722:7:0",
|
|
"730:9:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 150,
|
|
"src": "722:17:0"
|
|
},
|
|
"referencedDeclaration": 150,
|
|
"src": "722:17:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Signature_$150_storage_ptr",
|
|
"typeString": "struct Structs.Signature"
|
|
}
|
|
},
|
|
"id": 54,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "722:19:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_Signature_$150_storage_$dyn_storage_ptr",
|
|
"typeString": "struct Structs.Signature[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 58,
|
|
"mutability": "mutable",
|
|
"name": "guardianSet",
|
|
"nameLocation": "788:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 65,
|
|
"src": "761:38:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_GuardianSet_$141_memory_ptr",
|
|
"typeString": "struct Structs.GuardianSet"
|
|
},
|
|
"typeName": {
|
|
"id": 57,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 56,
|
|
"name": "Structs.GuardianSet",
|
|
"nameLocations": [
|
|
"761:7:0",
|
|
"769:11:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 141,
|
|
"src": "761:19:0"
|
|
},
|
|
"referencedDeclaration": 141,
|
|
"src": "761:19:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_GuardianSet_$141_storage_ptr",
|
|
"typeString": "struct Structs.GuardianSet"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "707:93:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 64,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 61,
|
|
"mutability": "mutable",
|
|
"name": "valid",
|
|
"nameLocation": "829:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 65,
|
|
"src": "824:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 60,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "824:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 63,
|
|
"mutability": "mutable",
|
|
"name": "reason",
|
|
"nameLocation": "850:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 65,
|
|
"src": "836:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 62,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "836:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "823:34:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "682:177:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "a9e11893",
|
|
"id": 73,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "parseVM",
|
|
"nameLocation": "874:7:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 68,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 67,
|
|
"mutability": "mutable",
|
|
"name": "encodedVM",
|
|
"nameLocation": "895:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 73,
|
|
"src": "882:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 66,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "882:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "881:24:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 72,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 71,
|
|
"mutability": "mutable",
|
|
"name": "vm",
|
|
"nameLocation": "947:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 73,
|
|
"src": "929:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_VM_$175_memory_ptr",
|
|
"typeString": "struct Structs.VM"
|
|
},
|
|
"typeName": {
|
|
"id": 70,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 69,
|
|
"name": "Structs.VM",
|
|
"nameLocations": [
|
|
"929:7:0",
|
|
"937:2:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 175,
|
|
"src": "929:10:0"
|
|
},
|
|
"referencedDeclaration": 175,
|
|
"src": "929:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_VM_$175_storage_ptr",
|
|
"typeString": "struct Structs.VM"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "928:22:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "865:86:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "f951975a",
|
|
"id": 81,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getGuardianSet",
|
|
"nameLocation": "966:14:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 76,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 75,
|
|
"mutability": "mutable",
|
|
"name": "index",
|
|
"nameLocation": "988:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 81,
|
|
"src": "981:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 74,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "981:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "980:14:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 80,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 79,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 81,
|
|
"src": "1018:26:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_GuardianSet_$141_memory_ptr",
|
|
"typeString": "struct Structs.GuardianSet"
|
|
},
|
|
"typeName": {
|
|
"id": 78,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 77,
|
|
"name": "Structs.GuardianSet",
|
|
"nameLocations": [
|
|
"1018:7:0",
|
|
"1026:11:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 141,
|
|
"src": "1018:19:0"
|
|
},
|
|
"referencedDeclaration": 141,
|
|
"src": "1018:19:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_GuardianSet_$141_storage_ptr",
|
|
"typeString": "struct Structs.GuardianSet"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1017:28:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "957:90:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "1cfe7951",
|
|
"id": 86,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getCurrentGuardianSetIndex",
|
|
"nameLocation": "1062:26:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 82,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1088:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 85,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 84,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 86,
|
|
"src": "1114:6:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 83,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1114:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1113:8:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1053:70:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "eb8d3f12",
|
|
"id": 91,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getGuardianSetExpiry",
|
|
"nameLocation": "1138:20:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 87,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1158:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 90,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 89,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 91,
|
|
"src": "1184:6:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 88,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1184:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1183:8:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1129:64:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "2c3c02a4",
|
|
"id": 98,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "governanceActionIsConsumed",
|
|
"nameLocation": "1208:26:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 94,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 93,
|
|
"mutability": "mutable",
|
|
"name": "hash",
|
|
"nameLocation": "1243:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 98,
|
|
"src": "1235:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 92,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1235:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1234:14:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 97,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 96,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 98,
|
|
"src": "1272:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 95,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1272:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1271:6:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1199:80:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "d60b347f",
|
|
"id": 105,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "isInitialized",
|
|
"nameLocation": "1294:13:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 101,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 100,
|
|
"mutability": "mutable",
|
|
"name": "impl",
|
|
"nameLocation": "1316:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 105,
|
|
"src": "1308:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 99,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1308:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1307:14:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 104,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 103,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 105,
|
|
"src": "1345:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 102,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1345:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1344:6:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1285:67:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "9a8a0592",
|
|
"id": 110,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "chainId",
|
|
"nameLocation": "1367:7:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 106,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1374:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 109,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 108,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 110,
|
|
"src": "1400:6:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 107,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1400:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1399:8:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1358:51:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "fbe3c2cd",
|
|
"id": 115,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "governanceChainId",
|
|
"nameLocation": "1424:17:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 111,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1441:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 114,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 113,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 115,
|
|
"src": "1467:6:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 112,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1467:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1466:8:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1415:60:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "b172b222",
|
|
"id": 120,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "governanceContract",
|
|
"nameLocation": "1490:18:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 116,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1508:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 119,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 118,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 120,
|
|
"src": "1534:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 117,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1534:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1533:9:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1481:62:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "1a90a219",
|
|
"id": 125,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "messageFee",
|
|
"nameLocation": "1558:10:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 121,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1568:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 124,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 123,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 125,
|
|
"src": "1594:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 122,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1594:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1593:9:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1549:55:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 127,
|
|
"src": "116:1490:0",
|
|
"usedErrors": [],
|
|
"usedEvents": [
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"src": "64:1542:0"
|
|
},
|
|
"id": 0
|
|
},
|
|
"contracts/messaging/Structs.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/messaging/Structs.sol",
|
|
"exportedSymbols": {
|
|
"Structs": [
|
|
176
|
|
]
|
|
},
|
|
"id": 177,
|
|
"license": "Apache 2",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 128,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".26"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "63:24:1"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "Structs",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": true,
|
|
"id": 176,
|
|
"linearizedBaseContracts": [
|
|
176
|
|
],
|
|
"name": "Structs",
|
|
"nameLocation": "100:7:1",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"canonicalName": "Structs.Provider",
|
|
"id": 135,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 130,
|
|
"mutability": "mutable",
|
|
"name": "chainId",
|
|
"nameLocation": "138:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 135,
|
|
"src": "131:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 129,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "131:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 132,
|
|
"mutability": "mutable",
|
|
"name": "governanceChainId",
|
|
"nameLocation": "156:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 135,
|
|
"src": "149:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 131,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "149:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 134,
|
|
"mutability": "mutable",
|
|
"name": "governanceContract",
|
|
"nameLocation": "185:18:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 135,
|
|
"src": "177:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 133,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "177:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "Provider",
|
|
"nameLocation": "118:8:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 176,
|
|
"src": "111:96:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "Structs.GuardianSet",
|
|
"id": 141,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 138,
|
|
"mutability": "mutable",
|
|
"name": "keys",
|
|
"nameLocation": "243:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 141,
|
|
"src": "233:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 136,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "233:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 137,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "233:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 140,
|
|
"mutability": "mutable",
|
|
"name": "expirationTime",
|
|
"nameLocation": "258:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 141,
|
|
"src": "251:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 139,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "251:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "GuardianSet",
|
|
"nameLocation": "217:11:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 176,
|
|
"src": "210:66:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "Structs.Signature",
|
|
"id": 150,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 143,
|
|
"mutability": "mutable",
|
|
"name": "r",
|
|
"nameLocation": "308:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 150,
|
|
"src": "300:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 142,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "300:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 145,
|
|
"mutability": "mutable",
|
|
"name": "s",
|
|
"nameLocation": "321:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 150,
|
|
"src": "313:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 144,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "313:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 147,
|
|
"mutability": "mutable",
|
|
"name": "v",
|
|
"nameLocation": "332:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 150,
|
|
"src": "326:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 146,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "326:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 149,
|
|
"mutability": "mutable",
|
|
"name": "guardianIndex",
|
|
"nameLocation": "343:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 150,
|
|
"src": "337:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 148,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "337:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "Signature",
|
|
"nameLocation": "286:9:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 176,
|
|
"src": "279:81:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "Structs.VM",
|
|
"id": 175,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 152,
|
|
"mutability": "mutable",
|
|
"name": "version",
|
|
"nameLocation": "383:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "377:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 151,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "377:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 154,
|
|
"mutability": "mutable",
|
|
"name": "timestamp",
|
|
"nameLocation": "401:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "394:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 153,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "394:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 156,
|
|
"mutability": "mutable",
|
|
"name": "nonce",
|
|
"nameLocation": "421:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "414:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 155,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "414:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 158,
|
|
"mutability": "mutable",
|
|
"name": "emitterChainId",
|
|
"nameLocation": "437:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "430:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 157,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "430:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 160,
|
|
"mutability": "mutable",
|
|
"name": "emitterAddress",
|
|
"nameLocation": "463:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "455:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 159,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "455:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 162,
|
|
"mutability": "mutable",
|
|
"name": "sequence",
|
|
"nameLocation": "488:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "481:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint64",
|
|
"typeString": "uint64"
|
|
},
|
|
"typeName": {
|
|
"id": 161,
|
|
"name": "uint64",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "481:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint64",
|
|
"typeString": "uint64"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 164,
|
|
"mutability": "mutable",
|
|
"name": "consistencyLevel",
|
|
"nameLocation": "506:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "500:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 163,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "500:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 166,
|
|
"mutability": "mutable",
|
|
"name": "payload",
|
|
"nameLocation": "532:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "526:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 165,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "526:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 168,
|
|
"mutability": "mutable",
|
|
"name": "guardianSetIndex",
|
|
"nameLocation": "551:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "544:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 167,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "544:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 172,
|
|
"mutability": "mutable",
|
|
"name": "signatures",
|
|
"nameLocation": "583:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "571:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_Signature_$150_storage_$dyn_storage_ptr",
|
|
"typeString": "struct Structs.Signature[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 170,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 169,
|
|
"name": "Signature",
|
|
"nameLocations": [
|
|
"571:9:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 150,
|
|
"src": "571:9:1"
|
|
},
|
|
"referencedDeclaration": 150,
|
|
"src": "571:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Signature_$150_storage_ptr",
|
|
"typeString": "struct Structs.Signature"
|
|
}
|
|
},
|
|
"id": 171,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "571:11:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_struct$_Signature_$150_storage_$dyn_storage_ptr",
|
|
"typeString": "struct Structs.Signature[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 174,
|
|
"mutability": "mutable",
|
|
"name": "hash",
|
|
"nameLocation": "606:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "598:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 173,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "598:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "VM",
|
|
"nameLocation": "370:2:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 176,
|
|
"src": "363:251:1",
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 177,
|
|
"src": "90:526:1",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "63:553:1"
|
|
},
|
|
"id": 1
|
|
}
|
|
}
|
|
}
|
|
} |