UNPKG

@roninbuilders/contracts

Version:

Type safe Contract ABIs for Ronin Network

1 lines 5.51 kB
var t={id:133,address:"0x7f13232bdc3a010c3f749a1c25bf99f1c053ce70",contract_name:"TransparentUpgradeableProxyV2",display_name:"Ronin Validator V2",is_deprecated:false,is_proxy:true,proxy_to:"0xf75f3a779ea4cc7a59106520afd312fa00b6d3fd",created_at:1655882569,abi:[{type:"constructor",stateMutability:"payable",inputs:[{type:"address",name:"_logic"},{type:"address",name:"admin_"},{type:"bytes",name:"_data"}]},{name:"AdminChanged",type:"event",inputs:[{type:"address",name:"previousAdmin"},{type:"address",name:"newAdmin"}]},{name:"BeaconUpgraded",type:"event",inputs:[{type:"address",name:"beacon",indexed:true}]},{name:"Upgraded",type:"event",inputs:[{type:"address",name:"implementation",indexed:true}]},{type:"fallback",stateMutability:"payable"},{name:"admin",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[{type:"address",name:"admin_"}]},{name:"changeAdmin",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newAdmin"}],outputs:[]},{name:"functionDelegateCall",type:"function",stateMutability:"payable",inputs:[{type:"bytes",name:"_data"}],outputs:[]},{name:"implementation",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[{type:"address",name:"implementation_"}]},{name:"upgradeTo",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newImplementation"}],outputs:[]},{name:"upgradeToAndCall",type:"function",stateMutability:"payable",inputs:[{type:"address",name:"newImplementation"},{type:"bytes",name:"data"}],outputs:[]},{type:"receive",stateMutability:"payable"}],proxy_abi:[{name:"ThresholdUpdated",type:"event",inputs:[{type:"uint256",name:"nonce",indexed:true},{type:"uint256",name:"numerator",indexed:true},{type:"uint256",name:"denominator",indexed:true},{type:"uint256",name:"previousNumerator"},{type:"uint256",name:"previousDenominator"}]},{name:"ValidatorsAdded",type:"event",inputs:[{type:"uint256",name:"nonce",indexed:true},{type:"tuple[]",name:"validators",components:[{type:"address",name:"validator"},{type:"address",name:"governor"},{type:"uint256",name:"weight"}]}]},{name:"ValidatorsRemoved",type:"event",inputs:[{type:"uint256",name:"nonce",indexed:true},{type:"address[]",name:"validators"}]},{name:"ValidatorsUpdated",type:"event",inputs:[{type:"uint256",name:"nonce",indexed:true},{type:"tuple[]",name:"validators",components:[{type:"address",name:"validator"},{type:"address",name:"governor"},{type:"uint256",name:"weight"}]}]},{name:"addValidators",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple[]",name:"_validatorList",components:[{type:"address",name:"validator"},{type:"address",name:"governor"},{type:"uint256",name:"weight"}]}],outputs:[]},{name:"checkThreshold",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"_voteWeight"}],outputs:[{type:"bool"}]},{name:"getGovernorWeight",type:"function",stateMutability:"view",inputs:[{type:"address",name:"_governor"}],outputs:[{type:"uint256"}]},{name:"getGovernors",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address[]"}]},{name:"getThreshold",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"},{type:"uint256"}]},{name:"getValidatorInfo",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"tuple[]",name:"_list",components:[{type:"address",name:"validator"},{type:"address",name:"governor"},{type:"uint256",name:"weight"}]}]},{name:"getValidatorWeight",type:"function",stateMutability:"view",inputs:[{type:"address",name:"_validator"}],outputs:[{type:"uint256"}]},{name:"getValidators",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address[]"}]},{name:"initialize",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple[]",name:"_initValidators",components:[{type:"address",name:"validator"},{type:"address",name:"governor"},{type:"uint256",name:"weight"}]},{type:"uint256",name:"_numerator"},{type:"uint256",name:"_denominator"}],outputs:[]},{name:"minimumVoteWeight",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"nonce",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"removeValidators",type:"function",stateMutability:"nonpayable",inputs:[{type:"address[]",name:"_validatorList"}],outputs:[]},{name:"setThreshold",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_numerator"},{type:"uint256",name:"_denominator"}],outputs:[{type:"uint256",name:"_previousNum"},{type:"uint256",name:"_previousDenom"}]},{name:"sumGovernorWeights",type:"function",stateMutability:"view",inputs:[{type:"address[]",name:"_addrList"}],outputs:[{type:"uint256",name:"_weight"}]},{name:"sumValidatorWeights",type:"function",stateMutability:"view",inputs:[{type:"address[]",name:"_addrList"}],outputs:[{type:"uint256",name:"_weight"}]},{name:"totalValidators",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"totalWeights",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"updateValidators",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple[]",name:"_validatorList",components:[{type:"address",name:"validator"},{type:"address",name:"governor"},{type:"uint256",name:"weight"}]}],outputs:[]},{name:"validators",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"_index"}],outputs:[{type:"tuple",components:[{type:"address",name:"validator"},{type:"address",name:"governor"},{type:"uint256",name:"weight"}]}]}]},e=t;export{e as default};