Files

398 lines
22 KiB
JSON
Raw Permalink Normal View History

{
"_format": "hh-sol-artifact-1",
"contractName": "MainnetTether",
"sourceName": "contracts/tether/MainnetTether.sol",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_admin",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "newAdmin",
"type": "address"
}
],
"name": "AdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "Paused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "stateRoot",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "validatorCount",
"type": "uint256"
}
],
"name": "StateProofAnchored",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "Unpaused",
"type": "event"
},
{
"inputs": [],
"name": "CHAIN_138",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "admin",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "stateRoot",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "previousBlockHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "signatures",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "validatorCount",
"type": "uint256"
}
],
"name": "anchorStateProof",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "anchoredBlocks",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "getAnchoredBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAnchoredBlockCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
}
],
"name": "getStateProof",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "stateRoot",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "previousBlockHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "signatures",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "validatorCount",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "proofHash",
"type": "bytes32"
}
],
"internalType": "struct MainnetTether.StateProof",
"name": "proof",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
}
],
"name": "isAnchored",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "paused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "processed",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newAdmin",
"type": "address"
}
],
"name": "setAdmin",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "stateProofs",
"outputs": [
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "stateRoot",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "previousBlockHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "signatures",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "validatorCount",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "proofHash",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "unpause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x6080346100ac57601f610de238819003918201601f19168301916001600160401b038311848410176100b1578084926020946040528339810103126100ac57516001600160a01b038116908190036100ac57801561007a57600080546001600160a01b031916919091179055604051610d1a90816100c88239f35b60405162461bcd60e51b815260206004820152600a6024820152693d32b9379030b236b4b760b11b6044820152606490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe608080604052600436101561001357600080fd5b60003560e01c9081632adeb68d14610ad65750806335a1e6bf14610a425780633f4ba83a146109e85780633fb00a371461098a5780635c975abb146109645780635d4494d01461094857806360fe7d6f146107e9578063704b6c02146107435780637e9c8e3a146101cd5780638456cb591461016d578063b28fcf551461014f578063c1f0808a1461011e578063f2ce940c146100e75763f851a440146100b957600080fd5b346100e25760003660031901126100e2576000546040516001600160a01b039091168152602090f35b600080fd5b346100e25760203660031901126100e2576004356002548110156100e257610110602091610c5e565b90546040519160031b1c8152f35b346100e25760203660031901126100e2576004356000526003602052602060ff604060002054166040519015158152f35b346100e25760003660031901126100e2576020600254604051908152f35b346100e25760003660031901126100e257600054610195336001600160a01b03831614610cab565b60ff60a01b1916600160a01b1760009081557f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e7529080a1005b346100e25760e03660031901126100e25760a43567ffffffffffffffff81116100e257366023820112156100e25767ffffffffffffffff8160040135116100e2573660248260040135830101116100e25760005460ff90610238336001600160a01b03831614610cab565b60a01c1661071557600435156106e057602435156106ac57604435156106725760c4351561063d57806004013515610608576040516020810190600435825260243560408201526044356060820152606435608082015260843560a082015282600401356024840160c08301376102c660c082856004013581016000838201520360a0810184520182610b57565b5190209081600052600360205260ff604060002054166105cf5760043560005260016020526040600020546105915760405161030181610b3a565b60043581526024356020820152604435604082015260643560608201526084356080820152600060206040519361034582601f19601f846004013501160186610b57565b60048101358086526024820183870137600401358401015260a0810191825260c43560c08201528260e0820152600435600052600160205260406000209181518355602082015160018401556040820151600284015560608201516003840155608082015160048401555180519067ffffffffffffffff82116104b4576103cf6005850154610b00565b601f811161054a575b50602090601f83116001146104d55791806007949260e0946000926104ca575b50508160011b916000199060031b1c19161760058501555b60c081015160068501550151910155600254680100000000000000008110156104b4578060016104439201600255610c5e565b81549060031b90600435821b91600019901b191617905560005260036020526040600020600160ff19825416179055604051608435815260c435602082015260443590602435907fbf7c0642a6dedfd6c2e55ff0daac95ce818968dd0a1ea8eeede3738f39bf957c604060043592a4005b634e487b7160e01b600052604160045260246000fd5b0151905087806103f8565b906005850160005260206000209160005b601f19851681106105325750926007949260019260e09583601f19811610610519575b505050811b016005850155610410565b015160001960f88460031b161c19169055878080610509565b919260206001819286850151815501940192016104e6565b600585016000526020600020601f840160051c81016020851061058a575b601f830160051c8201811061057e5750506103d8565b60008155600101610568565b5080610568565b60405162461bcd60e51b8152602060048201526016602482015275189b1bd8dac8185b1c9958591e48185b98da1bdc995960521b6044820152606490fd5b60405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e481c1c9bd8d95cdcd959607a1b6044820152606490fd5b60405162461bcd60e51b815260206004820152600d60248201526c6e6f207369676e61747572657360981b6044820152606490fd5b60405162461bcd60e51b815260206004820152600d60248201526c6e6f2076616c696461746f727360981b6044820152606490fd5b60405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a59081cdd185d19481c9bdbdd60721b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840d0c2e6d60a31b6044820152606490fd5b60405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420626c6f636b60981b6044820152606490fd5b60405162461bcd60e51b815260206004820152600660248201
"deployedBytecode": "0x608080604052600436101561001357600080fd5b60003560e01c9081632adeb68d14610ad65750806335a1e6bf14610a425780633f4ba83a146109e85780633fb00a371461098a5780635c975abb146109645780635d4494d01461094857806360fe7d6f146107e9578063704b6c02146107435780637e9c8e3a146101cd5780638456cb591461016d578063b28fcf551461014f578063c1f0808a1461011e578063f2ce940c146100e75763f851a440146100b957600080fd5b346100e25760003660031901126100e2576000546040516001600160a01b039091168152602090f35b600080fd5b346100e25760203660031901126100e2576004356002548110156100e257610110602091610c5e565b90546040519160031b1c8152f35b346100e25760203660031901126100e2576004356000526003602052602060ff604060002054166040519015158152f35b346100e25760003660031901126100e2576020600254604051908152f35b346100e25760003660031901126100e257600054610195336001600160a01b03831614610cab565b60ff60a01b1916600160a01b1760009081557f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e7529080a1005b346100e25760e03660031901126100e25760a43567ffffffffffffffff81116100e257366023820112156100e25767ffffffffffffffff8160040135116100e2573660248260040135830101116100e25760005460ff90610238336001600160a01b03831614610cab565b60a01c1661071557600435156106e057602435156106ac57604435156106725760c4351561063d57806004013515610608576040516020810190600435825260243560408201526044356060820152606435608082015260843560a082015282600401356024840160c08301376102c660c082856004013581016000838201520360a0810184520182610b57565b5190209081600052600360205260ff604060002054166105cf5760043560005260016020526040600020546105915760405161030181610b3a565b60043581526024356020820152604435604082015260643560608201526084356080820152600060206040519361034582601f19601f846004013501160186610b57565b60048101358086526024820183870137600401358401015260a0810191825260c43560c08201528260e0820152600435600052600160205260406000209181518355602082015160018401556040820151600284015560608201516003840155608082015160048401555180519067ffffffffffffffff82116104b4576103cf6005850154610b00565b601f811161054a575b50602090601f83116001146104d55791806007949260e0946000926104ca575b50508160011b916000199060031b1c19161760058501555b60c081015160068501550151910155600254680100000000000000008110156104b4578060016104439201600255610c5e565b81549060031b90600435821b91600019901b191617905560005260036020526040600020600160ff19825416179055604051608435815260c435602082015260443590602435907fbf7c0642a6dedfd6c2e55ff0daac95ce818968dd0a1ea8eeede3738f39bf957c604060043592a4005b634e487b7160e01b600052604160045260246000fd5b0151905087806103f8565b906005850160005260206000209160005b601f19851681106105325750926007949260019260e09583601f19811610610519575b505050811b016005850155610410565b015160001960f88460031b161c19169055878080610509565b919260206001819286850151815501940192016104e6565b600585016000526020600020601f840160051c81016020851061058a575b601f830160051c8201811061057e5750506103d8565b60008155600101610568565b5080610568565b60405162461bcd60e51b8152602060048201526016602482015275189b1bd8dac8185b1c9958591e48185b98da1bdc995960521b6044820152606490fd5b60405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e481c1c9bd8d95cdcd959607a1b6044820152606490fd5b60405162461bcd60e51b815260206004820152600d60248201526c6e6f207369676e61747572657360981b6044820152606490fd5b60405162461bcd60e51b815260206004820152600d60248201526c6e6f2076616c696461746f727360981b6044820152606490fd5b60405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a59081cdd185d19481c9bdbdd60721b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840d0c2e6d60a31b6044820152606490fd5b60405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420626c6f636b60981b6044820152606490fd5b60405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b6044820152606490fd5b346100e25760203660031901126100e2576004356001600160a01b03818116918290036100e25761077a6000549182163314610cab565b81156107b7576001600160a01b031916811760009081557f7ce7ec0b50378fb6c0186ffb5f48325f6593fcb4ca4386f21861af3129188f5c9080a2005b60405162461bcd60e51b815260206004820152600a6024820152693d32b9379030b236b4b760b11b6044820152606490fd5b346100e25760208060
"linkReferences": {},
"deployedLinkReferences": {}
}