@flarenetwork/flare-periphery-contract-artifacts
Version:
Smart contract artifacts for all Flare chains
567 lines (566 loc) • 11.1 kB
JSON
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "maxUpdatesPerBlock",
"type": "uint256"
}
],
"name": "MaxUpdatesPerBlockSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "bytes20",
"name": "nodeId",
"type": "bytes20"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "txHash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amountWei",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "pChainTxId",
"type": "bytes32"
}
],
"name": "StakeConfirmed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "bytes20",
"name": "nodeId",
"type": "bytes20"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "txHash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amountWei",
"type": "uint256"
}
],
"name": "StakeEnded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "bytes20",
"name": "nodeId",
"type": "bytes20"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "txHash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amountWei",
"type": "uint256"
}
],
"name": "StakeRevoked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes20",
"name": "nodeId",
"type": "bytes20"
},
{
"indexed": false,
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
}
],
"name": "VotePowerCacheCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "bytes20",
"name": "nodeId",
"type": "bytes20"
},
{
"indexed": false,
"internalType": "uint256",
"name": "priorVotePower",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newVotePower",
"type": "uint256"
}
],
"name": "VotePowerChanged",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "_blockNumber",
"type": "uint256"
}
],
"name": "balanceOfAt",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes20[]",
"name": "_nodeIds",
"type": "bytes20[]"
},
{
"internalType": "uint256",
"name": "_blockNumber",
"type": "uint256"
}
],
"name": "batchVotePowerOfAt",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_txId",
"type": "bytes32"
},
{
"internalType": "bytes20",
"name": "_inputAddress",
"type": "bytes20"
}
],
"name": "isActiveStakeMirrored",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "bytes32",
"name": "txId",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "stakingType",
"type": "uint8"
},
{
"internalType": "bytes20",
"name": "inputAddress",
"type": "bytes20"
},
{
"internalType": "bytes20",
"name": "nodeId",
"type": "bytes20"
},
{
"internalType": "uint64",
"name": "startTime",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "endTime",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "weight",
"type": "uint64"
}
],
"internalType": "struct IPChainStakeMirrorVerifier.PChainStake",
"name": "_stakeData",
"type": "tuple"
},
{
"internalType": "bytes32[]",
"name": "_merkleProof",
"type": "bytes32[]"
}
],
"name": "mirrorStake",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "stakesOf",
"outputs": [
{
"internalType": "bytes20[]",
"name": "_nodeIds",
"type": "bytes20[]"
},
{
"internalType": "uint256[]",
"name": "_amounts",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "_blockNumber",
"type": "uint256"
}
],
"name": "stakesOfAt",
"outputs": [
{
"internalType": "bytes20[]",
"name": "_nodeIds",
"type": "bytes20[]"
},
{
"internalType": "uint256[]",
"name": "_amounts",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_blockNumber",
"type": "uint256"
}
],
"name": "totalSupplyAt",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalVotePower",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_blockNumber",
"type": "uint256"
}
],
"name": "totalVotePowerAt",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_blockNumber",
"type": "uint256"
}
],
"name": "totalVotePowerAtCached",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "bytes20",
"name": "_nodeId",
"type": "bytes20"
}
],
"name": "votePowerFromTo",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "bytes20",
"name": "_nodeId",
"type": "bytes20"
},
{
"internalType": "uint256",
"name": "_blockNumber",
"type": "uint256"
}
],
"name": "votePowerFromToAt",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes20",
"name": "_nodeId",
"type": "bytes20"
}
],
"name": "votePowerOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes20",
"name": "_nodeId",
"type": "bytes20"
},
{
"internalType": "uint256",
"name": "_blockNumber",
"type": "uint256"
}
],
"name": "votePowerOfAt",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes20",
"name": "_owner",
"type": "bytes20"
},
{
"internalType": "uint256",
"name": "_blockNumber",
"type": "uint256"
}
],
"name": "votePowerOfAtCached",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]