@roninbuilders/contracts
Version:
Type safe Contract ABIs for Ronin Network
1 lines • 6.99 kB
JavaScript
;var e={id:36019,address:"0x2eaed298c7136f01665f5e6a8509b24b13c81f43",contract_name:"ERC1967Proxy",display_name:"X League Payment Proxy",is_deprecated:false,is_proxy:true,proxy_to:"0xeeb41c3f177cd3c202e17cbc215fe92f219b3d2d",created_at:1751788826,abi:[{type:"constructor",stateMutability:"payable",inputs:[{type:"address",name:"implementation"},{type:"bytes",name:"_data"}]},{name:"AddressEmptyCode",type:"error",inputs:[{type:"address",name:"target"}]},{name:"ERC1967InvalidImplementation",type:"error",inputs:[{type:"address",name:"implementation"}]},{name:"ERC1967NonPayable",type:"error",inputs:[]},{name:"FailedInnerCall",type:"error",inputs:[]},{name:"Upgraded",type:"event",inputs:[{type:"address",name:"implementation",indexed:true}]},{type:"fallback",stateMutability:"payable"}],proxy_abi:[{name:"AddressEmptyCode",type:"error",inputs:[{type:"address",name:"target"}]},{name:"ERC1967InvalidImplementation",type:"error",inputs:[{type:"address",name:"implementation"}]},{name:"ERC1967NonPayable",type:"error",inputs:[]},{name:"FailedCall",type:"error",inputs:[]},{name:"InvalidInitialization",type:"error",inputs:[]},{name:"NotInitializing",type:"error",inputs:[]},{name:"OwnableInvalidOwner",type:"error",inputs:[{type:"address",name:"owner"}]},{name:"OwnableUnauthorizedAccount",type:"error",inputs:[{type:"address",name:"account"}]},{name:"ReentrancyGuardReentrantCall",type:"error",inputs:[]},{name:"SafeERC20FailedOperation",type:"error",inputs:[{type:"address",name:"token"}]},{name:"UUPSUnauthorizedCallContext",type:"error",inputs:[]},{name:"UUPSUnsupportedProxiableUUID",type:"error",inputs:[{type:"bytes32",name:"slot"}]},{name:"AddItem",type:"event",inputs:[{type:"uint256",name:"itemId"},{type:"uint256",name:"price"},{type:"bool",name:"isUnlimited"},{type:"uint256",name:"dailyLimit"}]},{name:"Initialized",type:"event",inputs:[{type:"uint64",name:"version"}]},{name:"OwnershipTransferred",type:"event",inputs:[{type:"address",name:"previousOwner",indexed:true},{type:"address",name:"newOwner",indexed:true}]},{name:"Pay",type:"event",inputs:[{type:"address",name:"userAddress"},{type:"uint256",name:"itemId"},{type:"uint256",name:"price"},{type:"uint256",name:"refund"},{type:"string",name:"payload"},{type:"address",name:"token"},{type:"uint256",name:"amount"}]},{name:"UpdateDiscount",type:"event",inputs:[{type:"address",name:"token"},{type:"uint256",name:"itemId"},{type:"uint256",name:"discount"}]},{name:"UpdateItem",type:"event",inputs:[{type:"uint256",name:"itemId"},{type:"uint256",name:"price"},{type:"bool",name:"isUnlimited"},{type:"uint256",name:"dailyLimit"}]},{name:"UpdateOracle",type:"event",inputs:[{type:"address",name:"token"},{type:"address",name:"oracle"}]},{name:"Upgraded",type:"event",inputs:[{type:"address",name:"implementation",indexed:true}]},{name:"UPGRADE_INTERFACE_VERSION",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"addItem",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"itemId"},{type:"uint256",name:"price"},{type:"bool",name:"isUnlimited"},{type:"uint256",name:"dailyLimit"}],outputs:[]},{name:"addItems",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256[]",name:"itemIds"},{type:"uint256[]",name:"prices"},{type:"bool[]",name:"isUnlimited"},{type:"uint256[]",name:"dailyLimits"}],outputs:[]},{name:"discounts",type:"function",stateMutability:"view",inputs:[{type:"address"},{type:"uint256"}],outputs:[{type:"uint256"}]},{name:"getAmount",type:"function",stateMutability:"view",inputs:[{type:"address",name:"token"},{type:"uint256",name:"unitPriceInUsd"}],outputs:[{type:"uint256"}]},{name:"getTokenAmountPerItem",type:"function",stateMutability:"view",inputs:[{type:"address",name:"token"},{type:"uint256",name:"itemId"}],outputs:[{type:"uint256"}]},{name:"getUsdPrice",type:"function",stateMutability:"view",inputs:[{type:"address",name:"token"}],outputs:[{type:"uint256"}]},{name:"initialize",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"initialOwner"},{type:"address",name:"_treasury"},{type:"address[]",name:"tokens"},{type:"address[]",name:"oracles"},{type:"bytes32[]",name:"feedIds"}],outputs:[]},{name:"items",type:"function",stateMutability:"view",inputs:[{type:"uint256"}],outputs:[{type:"uint256",name:"price"},{type:"bool",name:"isRegistered"},{type:"bool",name:"isUnlimited"},{type:"uint256",name:"dailyLimit"}]},{name:"owner",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"pay",type:"function",stateMutability:"payable",inputs:[{type:"uint256",name:"itemId"},{type:"address",name:"token"},{type:"uint256",name:"maxAmount"},{type:"string",name:"payload"}],outputs:[]},{name:"priceAge",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"priceFeedIds",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"bytes32"}]},{name:"priceFeeds",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"address"}]},{name:"proxiableUUID",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"renounceOwnership",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"setPriceAge",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_age"}],outputs:[]},{name:"transferOwnership",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newOwner"}],outputs:[]},{name:"treasury",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"updateDiscount",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"},{type:"uint256",name:"itemId"},{type:"uint256",name:"discount"}],outputs:[]},{name:"updateDiscounts",type:"function",stateMutability:"nonpayable",inputs:[{type:"address[]",name:"tokens"},{type:"uint256[]",name:"itemIds"},{type:"uint256[]",name:"discountsArr"}],outputs:[]},{name:"updateItem",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"itemId"},{type:"uint256",name:"price"},{type:"bool",name:"isUnlimited"},{type:"uint256",name:"dailyLimit"}],outputs:[]},{name:"updateItems",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256[]",name:"itemIds"},{type:"uint256[]",name:"prices"},{type:"bool[]",name:"isUnlimited"},{type:"uint256[]",name:"dailyLimits"}],outputs:[]},{name:"updateOracle",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"},{type:"address",name:"oracle"},{type:"bytes32",name:"feedId"}],outputs:[]},{name:"upgradeToAndCall",type:"function",stateMutability:"payable",inputs:[{type:"address",name:"newImplementation"},{type:"bytes",name:"data"}],outputs:[]},{name:"userDailyPayCount",type:"function",stateMutability:"view",inputs:[{type:"address"},{type:"uint256"}],outputs:[{type:"uint256"}]},{name:"userPayTime",type:"function",stateMutability:"view",inputs:[{type:"address"},{type:"uint256"}],outputs:[{type:"uint256"}]}]},t=e;module.exports=t;