mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
364 lines
7.9 KiB
Plaintext
364 lines
7.9 KiB
Plaintext
[
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "signer",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "X",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "Y",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"indexed": false,
|
|
"internalType": "struct BN254.G1Point",
|
|
"name": "pkG1",
|
|
"type": "tuple"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256[2]",
|
|
"name": "X",
|
|
"type": "uint256[2]"
|
|
},
|
|
{
|
|
"internalType": "uint256[2]",
|
|
"name": "Y",
|
|
"type": "uint256[2]"
|
|
}
|
|
],
|
|
"indexed": false,
|
|
"internalType": "struct BN254.G2Point",
|
|
"name": "pkG2",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"name": "NewSigner",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "signer",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "string",
|
|
"name": "socket",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"name": "SocketUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "epochNumber",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "epoch",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "signersBitmap",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "getAggPkG1",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "X",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "Y",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct BN254.G1Point",
|
|
"name": "aggPkG1",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getSigner",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "signer",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "socket",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "X",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "Y",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct BN254.G1Point",
|
|
"name": "pkG1",
|
|
"type": "tuple"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256[2]",
|
|
"name": "X",
|
|
"type": "uint256[2]"
|
|
},
|
|
{
|
|
"internalType": "uint256[2]",
|
|
"name": "Y",
|
|
"type": "uint256[2]"
|
|
}
|
|
],
|
|
"internalType": "struct BN254.G2Point",
|
|
"name": "pkG2",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"internalType": "struct IDASigners.SignerDetail",
|
|
"name": "",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "epoch",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "getSigners",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "signer",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "socket",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "X",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "Y",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct BN254.G1Point",
|
|
"name": "pkG1",
|
|
"type": "tuple"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256[2]",
|
|
"name": "X",
|
|
"type": "uint256[2]"
|
|
},
|
|
{
|
|
"internalType": "uint256[2]",
|
|
"name": "Y",
|
|
"type": "uint256[2]"
|
|
}
|
|
],
|
|
"internalType": "struct BN254.G2Point",
|
|
"name": "pkG2",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"internalType": "struct IDASigners.SignerDetail[]",
|
|
"name": "details",
|
|
"type": "tuple[]"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "X",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "Y",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct BN254.G1Point",
|
|
"name": "_signature",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"name": "registerNextEpoch",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "signer",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "socket",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "X",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "Y",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct BN254.G1Point",
|
|
"name": "pkG1",
|
|
"type": "tuple"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256[2]",
|
|
"name": "X",
|
|
"type": "uint256[2]"
|
|
},
|
|
{
|
|
"internalType": "uint256[2]",
|
|
"name": "Y",
|
|
"type": "uint256[2]"
|
|
}
|
|
],
|
|
"internalType": "struct BN254.G2Point",
|
|
"name": "pkG2",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"internalType": "struct IDASigners.SignerDetail",
|
|
"name": "_signer",
|
|
"type": "tuple"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "X",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "Y",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct BN254.G1Point",
|
|
"name": "_signature",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"name": "registerSigner",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "socket",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"name": "updateSocket",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
]
|