From a470147f3a16e1517b53a1c8c1dbeef86bad8a4e Mon Sep 17 00:00:00 2001 From: Zach Petersen <156240781+zpetersen-paxos@users.noreply.github.com> Date: Mon, 4 Nov 2024 10:44:25 -0600 Subject: [PATCH] Clean up ABIs (#7) * Clean up ABIs * Retrigger build --- PaxosToken.abi | 1 - PaxosToken.bin | 1 - README.md | 3 +- abis/PaxosTokenV2.abi | 1 + abis/SupplyControl.abi | 1105 ++++++++++++++++++++++++++++++++++++++++ package-lock.json | 4 +- package.json | 13 +- 7 files changed, 1115 insertions(+), 13 deletions(-) delete mode 100644 PaxosToken.abi delete mode 100644 PaxosToken.bin create mode 100644 abis/PaxosTokenV2.abi create mode 100644 abis/SupplyControl.abi diff --git a/PaxosToken.abi b/PaxosToken.abi deleted file mode 100644 index 2116fd6..0000000 --- a/PaxosToken.abi +++ /dev/null @@ -1 +0,0 @@ -[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"InvalidPermission","type":"error"},{"inputs":[],"name":"OnlySupplyController","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"AddressFrozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"AddressUnfrozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationUsed","type":"event"},{"anonymous":false,"inputs":[],"name":"DefaultAdminDelayChangeCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint48","name":"newDelay","type":"uint48"},{"indexed":false,"internalType":"uint48","name":"effectSchedule","type":"uint48"}],"name":"DefaultAdminDelayChangeScheduled","type":"event"},{"anonymous":false,"inputs":[],"name":"DefaultAdminTransferCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"},{"indexed":false,"internalType":"uint48","name":"acceptSchedule","type":"uint48"}],"name":"DefaultAdminTransferScheduled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"FrozenAddressWiped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newSanctionedAddress","type":"address"}],"name":"SanctionedAddressListUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldSupplyController","type":"address"},{"indexed":true,"internalType":"address","name":"newSupplyController","type":"address"}],"name":"SupplyControllerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SupplyDecreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SupplyIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"inputs":[],"name":"ASSET_PROTECTION_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CANCEL_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_DOMAIN_HASH_DEPRECATED","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RECEIVE_WITH_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_WITH_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"assetProtectionRoleDeprecated","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"authorizationState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"beginDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"betaDelegateWhitelisterDeprecated","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"cancelAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"newDelay","type":"uint48"}],"name":"changeDefaultAdminDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"decreaseSupply","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultAdminDelay","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultAdminDelayIncreaseWait","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint48","name":"initialDelay","type":"uint48"},{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"address","name":"pauser","type":"address"},{"internalType":"address","name":"assetProtector","type":"address"}],"name":"doInitialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSanctionAddressListSmartContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"increaseSupply","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerDeprecated","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"pendingDefaultAdmin","outputs":[{"internalType":"address","name":"newAdmin","type":"address"},{"internalType":"uint48","name":"schedule","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingDefaultAdminDelay","outputs":[{"internalType":"uint48","name":"newDelay","type":"uint48"},{"internalType":"uint48","name":"schedule","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proposedOwnerDeprecated","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"receiveWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reclaimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rollbackDefaultAdminDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sanctionedAddressList","outputs":[{"internalType":"contract IAddressList","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSanctionAddressList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSupplyController","type":"address"}],"name":"setSupplyController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"from","type":"address[]"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"value","type":"uint256[]"}],"name":"transferFromBatch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"transferWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"from","type":"address[]"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"value","type":"uint256[]"},{"internalType":"uint256[]","name":"validAfter","type":"uint256[]"},{"internalType":"uint256[]","name":"validBefore","type":"uint256[]"},{"internalType":"bytes32[]","name":"nonce","type":"bytes32[]"},{"internalType":"uint8[]","name":"v","type":"uint8[]"},{"internalType":"bytes32[]","name":"r","type":"bytes32[]"},{"internalType":"bytes32[]","name":"s","type":"bytes32[]"}],"name":"transferWithAuthorizationBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"wipeFrozenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/PaxosToken.bin b/PaxosToken.bin deleted file mode 100644 index 156d98d..0000000 --- a/PaxosToken.bin +++ /dev/null @@ -1 +0,0 @@ -0x60806040523480156200001157600080fd5b506200001c62000022565b620000e3565b603d54610100900460ff16156200008f5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b603d5460ff90811614620000e157603d805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b61414680620000f36000396000f3fe608060405234801561001057600080fd5b50600436106103c55760003560e01c80638456cb59116101ff578063d547741f1161011a578063e5839836116100ad578063ef55bec61161007c578063ef55bec614610932578063f5968e2d14610945578063fa2f0ab514610958578063fff281371461097057600080fd5b8063e5839836146108bd578063e7ba1012146108d0578063e949c592146108e3578063e94a0102146108f957600080fd5b8063d9169487116100e9578063d916948714610837578063dd62ed3e1461085e578063e2f72f0314610897578063e3ee160e146108aa57600080fd5b8063d547741f146107f4578063d602b9fd14610807578063d73dd6231461080f578063d761b9b11461082257600080fd5b8063a217fddf11610192578063cc8463c811610161578063cc8463c8146107a3578063cefc1429146107ab578063cf6eefb7146107b3578063d505accf146107e157600080fd5b8063a217fddf14610762578063a9059cbb1461076a578063b921e1631461077d578063ba1b7e761461079057600080fd5b806395d89b41116101ce57806395d89b41146106db57806398e52f9a14610701578063a0cc6a6814610714578063a1eda53c1461073b57600080fd5b80638456cb59146106a757806384ef8ffc146106af5780638da5cb5b146106c057806391d14854146106c857600080fd5b806336568abe116102ef578063634e93da1161028257806370a082311161025157806370a082311461061b578063721e9765146106445780637ecebe00146106575780637f2eecc31461068057600080fd5b8063634e93da146105cf5780636424e9fe146105e2578063649a5ec7146105f5578063661884631461060857600080fd5b806352b7d527116102be57806352b7d527146105825780635a049a70146105955780635c975abb146105a85780635e927fe8146105bc57600080fd5b806336568abe1461053f578063389ed267146105525780633f4ba83a1461056757806352875bc31461056f57600080fd5b806323b872dd116103675780632f2ff15d116103365780632f2ff15d146104ed57806330adf81f14610500578063313ce567146105275780633644e5151461053657600080fd5b806323b872dd1461049b578063248a9ca3146104ae5780632a820f19146104d15780632bb8fdcd146104e457600080fd5b8063095ea7b3116103a3578063095ea7b3146104415780630aa6220b14610454578063153343cf1461045e57806318160ddd1461048957600080fd5b806301ffc9a7146103ca578063022d63fb146103f257806306fdde031461040e575b600080fd5b6103dd6103d8366004613747565b610978565b60405190151581526020015b60405180910390f35b620697805b60405165ffffffffffff90911681526020016103e9565b60408051808201909152600e81526d14185e1bdcd51bdad95b881554d160921b60208201525b6040516103e99190613795565b6103dd61044f3660046137df565b6109a3565b61045c610a25565b005b600554610471906001600160a01b031681565b6040516001600160a01b0390911681526020016103e9565b6002545b6040519081526020016103e9565b6103dd6104a9366004613809565b610a3b565b61048d6104bc366004613845565b600090815260a2602052604090206001015490565b61045c6104df366004613874565b610acb565b61048d600c5481565b61045c6104fb3660046138c8565b610af2565b61048d7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b604051601281526020016103e9565b61048d60265481565b61045c61054d3660046138c8565b610b6c565b61048d6000805160206140f183398151915281565b61045c610c56565b61045c61057d3660046138f4565b610cf3565b600954610471906001600160a01b031681565b61045c6105a3366004613920565b610f34565b6004546103dd90600160a01b900460ff1681565b600854610471906001600160a01b031681565b61045c6105dd3660046138f4565b61116a565b600454610471906001600160a01b031681565b61045c61060336600461396e565b61117e565b6103dd6106163660046137df565b611192565b61048d6106293660046138f4565b6001600160a01b031660009081526001602052604090205490565b61045c6106523660046138f4565b61132e565b61048d6106653660046138f4565b6001600160a01b031660009081526027602052604090205490565b61048d7fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de881565b61045c611408565b60d5546001600160a01b0316610471565b6104716114aa565b6103dd6106d63660046138c8565b6114c3565b60408051808201909152600a8152692830bc37b9aa37b5b2b760b11b6020820152610434565b6103dd61070f366004613845565b6114ee565b61048d7f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a226781565b61074361163f565b6040805165ffffffffffff9384168152929091166020830152016103e9565b61048d600081565b6103dd6107783660046137df565b611693565b6103dd61078b366004613845565b6116cb565b6103dd61079e3660046139d5565b6117b1565b6103f7611930565b61045c61198f565b6107bb611a0d565b604080516001600160a01b03909316835265ffffffffffff9091166020830152016103e9565b61045c6107ef366004613a6f565b611a2e565b61045c6108023660046138c8565b611ccb565b61045c611d48565b6103dd61081d3660046137df565b611d5b565b61048d6000805160206140b183398151915281565b61048d7f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742981565b61048d61086c366004613ad9565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61045c6108a53660046138f4565b611e3a565b61045c6108b8366004613b03565b611f81565b6103dd6108cb3660046138f4565b611fe8565b600754610471906001600160a01b031681565b60005461010090046001600160a01b0316610471565b6103dd6109073660046137df565b6001600160a01b03919091166000908152603260209081526040808320938352929052205460ff1690565b61045c610940366004613b03565b611ff3565b61045c610953366004613d1b565b6120b1565b6000546104719061010090046001600160a01b031681565b61045c6122ef565b60006001600160e01b031982166318a4c3c360e11b148061099d575061099d82612379565b92915050565b600454600090600160a01b900460ff16156109d95760405162461bcd60e51b81526004016109d090613e80565b60405180910390fd5b6109e2836123ae565b1580156109f557506109f3336123ae565b155b610a115760405162461bcd60e51b81526004016109d090613ea7565b610a1c338484612423565b50600192915050565b6000610a308161247c565b610a38612486565b50565b600454600090600160a01b900460ff1615610a685760405162461bcd60e51b81526004016109d090613e80565b610a71336123ae565b15610ab65760405162461bcd60e51b815260206004820152601560248201527439b2b73232b91030b2323932b9b990333937bd32b760591b60448201526064016109d0565b610ac1848484612493565b5060019392505050565b6000610ad9603d5460ff1690565b60ff169050610aeb8186868686612547565b5050505050565b81610b5e5760405162461bcd60e51b815260206004820152603660248201527f416363657373436f6e74726f6c3a2063616e2774206469726563746c79206772604482015275616e742064656661756c742061646d696e20726f6c6560501b60648201526084016109d0565b610b68828261263e565b5050565b81158015610b87575060d5546001600160a01b038281169116145b15610c4c57600080610b97611a0d565b90925090506001600160a01b038216158015610bba575065ffffffffffff811615155b8015610bcd57504265ffffffffffff8216105b610c375760405162461bcd60e51b815260206004820152603560248201527f416363657373436f6e74726f6c3a206f6e6c792063616e2072656e6f756e636560448201527420696e2074776f2064656c6179656420737465707360581b60648201526084016109d0565b505060d4805465ffffffffffff60a01b191690555b610b688282612668565b6000805160206140f1833981519152610c6e8161247c565b600454600160a01b900460ff16610cba5760405162461bcd60e51b815260206004820152601060248201526f185b1c9958591e481d5b9c185d5cd95960821b60448201526064016109d0565b6004805460ff60a01b191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a150565b6007546001600160a01b0316331480610d245750610d0f6114aa565b6001600160a01b0316336001600160a01b0316145b610d705760405162461bcd60e51b815260206004820152601e60248201527f6f6e6c7920537570706c79436f6e74726f6c6c6572206f72204f776e6572000060448201526064016109d0565b6001600160a01b038116610ddb5760405162461bcd60e51b815260206004820152602c60248201527f63616e6e6f742073657420737570706c7920636f6e74726f6c6c657220746f2060448201526b7a65726f206164647265737360a01b60648201526084016109d0565b6007546001600160a01b03808316911603610e445760405162461bcd60e51b8152602060048201526024808201527f6e657720616464726573732069732073616d6520617320612063757272656e74604482015263206f6e6560e01b60648201526084016109d0565b6007546001600160a01b03908116600081815260016020908152604091829020549151918252928416926000805160206140d1833981519152910160405180910390a36007546001600160a01b0390811660009081526001602052604080822054928416825281208054909190610ebc908490613ee5565b9091555050600780546001600160a01b039081166000908152600160205260408082208290559254925184831693909216917f40d53b0b666e4424f29d55244e7e171a1dc332acc11d04ed4abd884629d8cc979190a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b600454600160a01b900460ff1615610f5e5760405162461bcd60e51b81526004016109d090613e80565b610f67336123ae565b158015610f7a5750610f78856123ae565b155b610fc05760405162461bcd60e51b815260206004820152601760248201527622a4a81998181c9d1030b2323932b9b990333937bd32b760491b60448201526064016109d0565b6001600160a01b0385166000908152603260209081526040808320878452825291829020548251808401909352601e83527f454950333030393a20617574686f72697a6174696f6e206973207573656400009183019190915260ff161561103a5760405162461bcd60e51b81526004016109d09190613795565b50604080517f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742960208201526001600160a01b03871691810191909152606081018590526000906080016040516020818303038152906040529050856001600160a01b03166110ad602654868686866126e2565b6001600160a01b0316146040518060400160405280601a81526020017f454950333030393a20696e76616c6964207369676e61747572650000000000008152509061110b5760405162461bcd60e51b81526004016109d09190613795565b506001600160a01b0386166000818152603260209081526040808320898452909152808220805460ff19166001179055518792917f1cdd46ff242716cdaa72d159d339a485b3438398348d68f09d7c8c0a59353d8191a3505050505050565b60006111758161247c565b610b6882612744565b60006111898161247c565b610b68826127b7565b600454600090600160a01b900460ff16156111bf5760405162461bcd60e51b81526004016109d090613e80565b6111c8836123ae565b1580156111db57506111d9336123ae565b155b6111f75760405162461bcd60e51b81526004016109d090613ea7565b8160000361123e5760405162461bcd60e51b815260206004820152601460248201527376616c75652063616e6e6f74206265207a65726f60601b60448201526064016109d0565b3360009081526003602090815260408083206001600160a01b0387168452909152902054821115611292573360009081526003602090815260408083206001600160a01b03871684529091528120556112cb565b3360009081526003602090815260408083206001600160a01b0387168452909152812080548492906112c5908490613ef8565b90915550505b3360008181526003602090815260408083206001600160a01b038816808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350600192915050565b6000805160206140b18339815191526113486000336114c3565b15801561135c575061135a81336114c3565b155b156113835760405163e2517d3f60e01b8152336004820152602481018290526044016109d0565b6001600160a01b0382166113aa5760405163d92e233d60e01b815260040160405180910390fd5b60008054610100600160a81b0319166101006001600160a01b038516908102919091179091556040519081527fdfa7b90e12da6c1d36ebcce07fb8616a51f8a0071d1a5f5e03c50617021afa28906020015b60405180910390a15050565b6000805160206140f18339815191526114208161247c565b600454600160a01b900460ff161561146b5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481c185d5cd95960921b60448201526064016109d0565b6004805460ff60a01b1916600160a01b1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a150565b60006114be60d5546001600160a01b031690565b905090565b600091825260a2602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6007546000906001600160a01b0316331461151c5760405163a810394360e01b815260040160405180910390fd5b6007546001600160a01b031660009081526001602052604090205482111561157a5760405162461bcd60e51b81526020600482015260116024820152706e6f7420656e6f75676820737570706c7960781b60448201526064016109d0565b6007546001600160a01b0316600090815260016020526040812080548492906115a4908490613ef8565b9250508190555081600260008282546115bd9190613ef8565b90915550506007546040518381526001600160a01b03909116907f1b7e18241beced0d7f41fbab1ea8ed468732edbcb74ec4420151654ca71c8a639060200160405180910390a26007546040518381526000916001600160a01b0316906000805160206140d1833981519152906020015b60405180910390a35060015b919050565b60d554600090600160d01b900465ffffffffffff16801515801561166b57504265ffffffffffff821610155b6116775760008061168b565b60d554600160a01b900465ffffffffffff16815b915091509091565b600454600090600160a01b900460ff16156116c05760405162461bcd60e51b81526004016109d090613e80565b610a1c338484612820565b6007546000906001600160a01b031633146116f95760405163a810394360e01b815260040160405180910390fd5b816002600082825461170b9190613ee5565b90915550506007546001600160a01b03166000908152600160205260408120805484929061173a908490613ee5565b90915550506007546040518381526001600160a01b03909116907ff5c174d57843e57fea3c649fdde37f015ef08750759cbee88060390566a987979060200160405180910390a26007546040518381526001600160a01b03909116906000906000805160206140d18339815191529060200161162e565b600454600090600160a01b900460ff16156117de5760405162461bcd60e51b81526004016109d090613e80565b83861480156117ec57508186145b6118385760405162461bcd60e51b815260206004820152601a60248201527f617267756d656e742773206c656e677468206d69736d6174636800000000000060448201526064016109d0565b611841336123ae565b156118865760405162461bcd60e51b815260206004820152601560248201527439b2b73232b91030b2323932b9b990333937bd32b760591b60448201526064016109d0565b60005b61ffff81168711156119225761191088888361ffff168181106118ae576118ae613f0b565b90506020020160208101906118c391906138f4565b87878461ffff168181106118d9576118d9613f0b565b90506020020160208101906118ee91906138f4565b86868561ffff1681811061190457611904613f0b565b90506020020135612493565b8061191a81613f21565b915050611889565b506001979650505050505050565b60d554600090600160d01b900465ffffffffffff16801515801561195b57504265ffffffffffff8216105b6119765760d454600160d01b900465ffffffffffff16611989565b60d554600160a01b900465ffffffffffff165b91505090565b6000611999611a0d565b509050336001600160a01b03821614611a055760405162461bcd60e51b815260206004820152602860248201527f416363657373436f6e74726f6c3a2070656e64696e672061646d696e206d75736044820152671d081858d8d95c1d60c21b60648201526084016109d0565b610a386129bc565b60d4546001600160a01b03811691600160a01b90910465ffffffffffff1690565b600454600160a01b900460ff1615611a585760405162461bcd60e51b81526004016109d090613e80565b428411611aa75760405162461bcd60e51b815260206004820152601a60248201527f454950323631323a207065726d6974206973206578706972656400000000000060448201526064016109d0565b611ab0336123ae565b15611afd5760405162461bcd60e51b815260206004820152601760248201527f454950323631323a20616464726573732066726f7a656e00000000000000000060448201526064016109d0565b6001600160a01b03871615801590611b1d57506001600160a01b03861615155b611b755760405162461bcd60e51b815260206004820152602360248201527f45524332303a20617070726f76652066726f6d206973207a65726f206164647260448201526265737360e81b60648201526084016109d0565b611b7e866123ae565b158015611b915750611b8f876123ae565b155b611bad5760405162461bcd60e51b81526004016109d090613ea7565b6001600160a01b038716600090815260276020526040812080547f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918a918a918a919086611bfa83613f42565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040529050876001600160a01b0316611c60602654868686866126e2565b6001600160a01b031614611cb65760405162461bcd60e51b815260206004820152601a60248201527f454950323631323a20696e76616c6964207369676e617475726500000000000060448201526064016109d0565b611cc1888888612423565b5050505050505050565b81611d3e5760405162461bcd60e51b815260206004820152603760248201527f416363657373436f6e74726f6c3a2063616e2774206469726563746c7920726560448201527f766f6b652064656661756c742061646d696e20726f6c6500000000000000000060648201526084016109d0565b610b688282612a87565b6000611d538161247c565b610a38612aac565b600454600090600160a01b900460ff1615611d885760405162461bcd60e51b81526004016109d090613e80565b611d91836123ae565b158015611da45750611da2336123ae565b155b611dc05760405162461bcd60e51b81526004016109d090613ea7565b81600003611e075760405162461bcd60e51b815260206004820152601460248201527376616c75652063616e6e6f74206265207a65726f60601b60448201526064016109d0565b3360009081526003602090815260408083206001600160a01b0387168452909152812080548492906112c5908490613ee5565b6000805160206140b1833981519152611e528161247c565b611e5b826123ae565b611e9f5760405162461bcd60e51b815260206004820152601560248201527430b2323932b9b99034b9903737ba10333937bd32b760591b60448201526064016109d0565b6001600160a01b03821660009081526001602052604081208054908290556002805491928392611ed0908490613ef8565b90915550506040516001600160a01b038416907ffc5960f1c5a5d2b60f031bf534af053b1bf7d9881989afaeb8b1d164db23aede90600090a2826001600160a01b03167f1b7e18241beced0d7f41fbab1ea8ed468732edbcb74ec4420151654ca71c8a6382604051611f4491815260200190565b60405180910390a26040518181526000906001600160a01b038516906000805160206140d1833981519152906020015b60405180910390a3505050565b600454600160a01b900460ff1615611fab5760405162461bcd60e51b81526004016109d090613e80565b611fdd7f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a22678a8a8a8a8a8a8a8a8a612ab7565b505050505050505050565b600061099d826123ae565b600454600160a01b900460ff161561201d5760405162461bcd60e51b81526004016109d090613e80565b6001600160a01b038816331461207f5760405162461bcd60e51b815260206004820152602160248201527f454950333030393a2063616c6c6572206d7573742062652074686520706179656044820152606560f81b60648201526084016109d0565b611fdd7fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de88a8a8a8a8a8a8a8a8a612ab7565b600454600160a01b900460ff16156120db5760405162461bcd60e51b81526004016109d090613e80565b885188511480156120ed575088518751145b80156120fa575088518651145b8015612107575088518551145b8015612114575088518451145b8015612121575088518351145b801561212e575088518251145b801561213b575088518151145b6121875760405162461bcd60e51b815260206004820152601a60248201527f617267756d656e742773206c656e677468206d69736d6174636800000000000060448201526064016109d0565b60005b89518161ffff1610156122e3576122d17f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a226760001b8b8361ffff16815181106121d4576121d4613f0b565b60200260200101518b8461ffff16815181106121f2576121f2613f0b565b60200260200101518b8561ffff168151811061221057612210613f0b565b60200260200101518b8661ffff168151811061222e5761222e613f0b565b60200260200101518b8761ffff168151811061224c5761224c613f0b565b60200260200101518b8861ffff168151811061226a5761226a613f0b565b60200260200101518b8961ffff168151811061228857612288613f0b565b60200260200101518b8a61ffff16815181106122a6576122a6613f0b565b60200260200101518b8b61ffff16815181106122c4576122c4613f0b565b6020026020010151612ab7565b806122db81613f21565b91505061218a565b50505050505050505050565b60006122fa8161247c565b30600090815260016020526040812054906123136114aa565b306000908152600160205260408082208290556001600160a01b0383168252812080549293508492909190612349908490613ee5565b90915550506040518281526001600160a01b0382169030906000805160206140d183398151915290602001611f74565b60006001600160e01b03198216637965db0b60e01b148061099d57506301ffc9a760e01b6001600160e01b031983161461099d565b6000805460405163061f186760e51b81526001600160a01b0384811660048301526101009092049091169063c3e30ce090602401602060405180830381865afa1580156123ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099d9190613f5b565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101611f74565b610a388133612d79565b612491600080612dd2565b565b6001600160a01b03831660009081526003602090815260408083203384529091529020548111156124ff5760405162461bcd60e51b8152602060048201526016602482015275696e73756666696369656e7420616c6c6f77616e636560501b60448201526064016109d0565b61250a838383612820565b6001600160a01b03831660009081526003602090815260408083203384529091528120805483929061253d908490613ef8565b9091555050505050565b603d54600290610100900460ff161580156125695750603d5460ff8083169116105b6125cc5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016109d0565b603d805461ffff191660ff8316176101001790556125e986612e92565b6125f585858585612fab565b603d805461ff001916905560405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050505050565b600082815260a260205260409020600101546126598161247c565b6126638383612feb565b505050565b6001600160a01b03811633146126d85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016109d0565b610b688282613095565b60008086838051906020012060405160200161271592919061190160f01b81526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050612739818787876130d0565b979650505050505050565b600061274e611930565b61275742613285565b6127619190613f7d565b905061276d82826132f0565b60405165ffffffffffff821681526001600160a01b038316907f3377dc44241e779dd06afab5b788a35ca5f3b778836e2990bdb26a2a4b2e5ed69060200160405180910390a25050565b60006127c28261336f565b6127cb42613285565b6127d59190613f7d565b90506127e18282612dd2565b6040805165ffffffffffff8085168252831660208201527ff1038c18cf84a56e432fdbfaf746924b7ea511dfe03a6506a0ceba4888788d9b91016113fc565b6001600160a01b0382161580159061284057506001600160a01b03831615155b6128985760405162461bcd60e51b8152602060048201526024808201527f63616e6e6f74207472616e7366657220746f2f66726f6d2061646472657373206044820152637a65726f60e01b60648201526084016109d0565b6128a1826123ae565b1580156128b457506128b2836123ae565b155b6128d05760405162461bcd60e51b81526004016109d090613ea7565b6001600160a01b03831660009081526001602052604090205481111561292d5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016109d0565b6001600160a01b03831660009081526001602052604081208054839290612955908490613ef8565b90915550506001600160a01b03821660009081526001602052604081208054839290612982908490613ee5565b92505081905550816001600160a01b0316836001600160a01b03166000805160206140d183398151915283604051611f7491815260200190565b6000806129c7611a0d565b915091506129dc8165ffffffffffff16151590565b80156129ef57504265ffffffffffff8216105b612a4c5760405162461bcd60e51b815260206004820152602860248201527f416363657373436f6e74726f6c3a207472616e736665722064656c6179206e6f6044820152671d081c185cdcd95960c21b60648201526084016109d0565b612a686000612a6360d5546001600160a01b031690565b613095565b612a73600083612feb565b505060d480546001600160d01b0319169055565b600082815260a26020526040902060010154612aa28161247c565b6126638383613095565b6124916000806132f0565b854211612b165760405162461bcd60e51b815260206004820152602760248201527f454950333030393a20617574686f72697a6174696f6e206973206e6f742079656044820152661d081d985b1a5960ca1b60648201526084016109d0565b844210612b6f5760405162461bcd60e51b815260206004820152602160248201527f454950333030393a20617574686f72697a6174696f6e206973206578706972656044820152601960fa1b60648201526084016109d0565b612b78336123ae565b15612bbf5760405162461bcd60e51b815260206004820152601760248201527622a4a81998181c9d1030b2323932b9b990333937bd32b760491b60448201526064016109d0565b6001600160a01b0389166000908152603260209081526040808320878452825291829020548251808401909352601e83527f454950333030393a20617574686f72697a6174696f6e206973207573656400009183019190915260ff1615612c395760405162461bcd60e51b81526004016109d09190613795565b5060408051602081018c90526001600160a01b03808c169282019290925290891660608201526080810188905260a0810187905260c0810186905260e08101859052600090610100016040516020818303038152906040529050896001600160a01b0316612cac602654868686866126e2565b6001600160a01b0316146040518060400160405280601a81526020017f454950333030393a20696e76616c6964207369676e617475726500000000000081525090612d0a5760405162461bcd60e51b81526004016109d09190613795565b506001600160a01b038a166000818152603260209081526040808320898452909152808220805460ff19166001179055518792917f98de503528ee59b575ef0c0a2576a82497bfc029a5685b209e9ec333479b10a591a3612d6c8a8a8a612820565b5050505050505050505050565b612d8382826114c3565b610b6857612d90816133be565b612d9b8360206133d0565b604051602001612dac929190613fa3565b60408051601f198184030181529082905262461bcd60e51b82526109d091600401613795565b60d554600160d01b900465ffffffffffff168015612e55574265ffffffffffff82161015612e2b5760d55460d480546001600160d01b0316600160a01b90920465ffffffffffff16600160d01b02919091179055612e55565b6040517f2b1fa2edafe6f7b9e97c1a9e0c3660e645beb2dcaa2d45bdbf9beaf5472e1ec590600090a15b5060d580546001600160a01b0316600160a01b65ffffffffffff948516026001600160d01b031617600160d01b9290931691909102919091179055565b60018167ffffffffffffffff16108015612eaf575060005460ff16155b15610a38576000600255600780546001600160a01b03191633179055612f98612ef960408051808201909152600e81526d14185e1bdcd51bdad95b881554d160921b602082015290565b60408051808201825260018152603160f81b60209182015282519281019290922081517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81850152808301919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528251808303909101815260c0909101909152805191012090565b6026556000805460ff1916600117905550565b612fb5848461356c565b612fcd6000805160206140f183398151915283612feb565b612fe56000805160206140b183398151915282612feb565b50505050565b8161308b57600061300460d5546001600160a01b031690565b6001600160a01b03161461306f5760405162461bcd60e51b815260206004820152602c60248201527f416363657373436f6e74726f6c3a2064656661756c742061646d696e20616c7260448201526b1958591e4819dc985b9d195960a21b60648201526084016109d0565b60d580546001600160a01b0319166001600160a01b0383161790555b610b68828261359d565b811580156130b0575060d5546001600160a01b038281169116145b156130c65760d580546001600160a01b03191690555b610b688282613623565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156131515760405162461bcd60e51b815260206004820152602660248201527f45435265636f7665723a20696e76616c6964207369676e6174757265202773276044820152652076616c756560d01b60648201526084016109d0565b8360ff16601b1415801561316957508360ff16601c14155b156131c55760405162461bcd60e51b815260206004820152602660248201527f45435265636f7665723a20696e76616c6964207369676e6174757265202776276044820152652076616c756560d01b60648201526084016109d0565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015613219573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661327c5760405162461bcd60e51b815260206004820152601c60248201527f45435265636f7665723a20696e76616c6964207369676e61747572650000000060448201526064016109d0565b95945050505050565b600065ffffffffffff8211156132ec5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203460448201526538206269747360d01b60648201526084016109d0565b5090565b60006132fa611a0d565b60d4805465ffffffffffff8616600160a01b026001600160d01b03199091166001600160a01b03881617179055915061333c90508165ffffffffffff16151590565b15612663576040517f8886ebfc4259abdbc16601dd8fb5678e54878f47b3c34836cfc51154a960510990600090a1505050565b60008061337a611930565b90508065ffffffffffff168365ffffffffffff16116133a25761339d8382614018565b6133b7565b6133b765ffffffffffff84166206978061368a565b9392505050565b606061099d6001600160a01b03831660145b606060006133df836002614037565b6133ea906002613ee5565b67ffffffffffffffff81111561340257613402613b81565b6040519080825280601f01601f19166020018201604052801561342c576020820181803683370190505b509050600360fc1b8160008151811061344757613447613f0b565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061347657613476613f0b565b60200101906001600160f81b031916908160001a905350600061349a846002614037565b6134a5906001613ee5565b90505b600181111561351d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106134d9576134d9613f0b565b1a60f81b8282815181106134ef576134ef613f0b565b60200101906001600160f81b031916908160001a90535060049490941c936135168161404e565b90506134a8565b5083156133b75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109d0565b603d54610100900460ff166135935760405162461bcd60e51b81526004016109d090614065565b610b6882826136a0565b6135a782826114c3565b610b6857600082815260a2602090815260408083206001600160a01b03851684529091529020805460ff191660011790556135df3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61362d82826114c3565b15610b6857600082815260a2602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081831061369957816133b7565b5090919050565b603d54610100900460ff166136c75760405162461bcd60e51b81526004016109d090614065565b6001600160a01b03811661371d5760405162461bcd60e51b815260206004820152601e60248201527f416363657373436f6e74726f6c3a20302064656661756c742061646d696e000060448201526064016109d0565b60d480546001600160d01b0316600160d01b65ffffffffffff851602179055610b68600082612feb565b60006020828403121561375957600080fd5b81356001600160e01b0319811681146133b757600080fd5b60005b8381101561378c578181015183820152602001613774565b50506000910152565b60208152600082518060208401526137b4816040850160208701613771565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461163a57600080fd5b600080604083850312156137f257600080fd5b6137fb836137c8565b946020939093013593505050565b60008060006060848603121561381e57600080fd5b613827846137c8565b9250613835602085016137c8565b9150604084013590509250925092565b60006020828403121561385757600080fd5b5035919050565b803565ffffffffffff8116811461163a57600080fd5b6000806000806080858703121561388a57600080fd5b6138938561385e565b93506138a1602086016137c8565b92506138af604086016137c8565b91506138bd606086016137c8565b905092959194509250565b600080604083850312156138db57600080fd5b823591506138eb602084016137c8565b90509250929050565b60006020828403121561390657600080fd5b6133b7826137c8565b803560ff8116811461163a57600080fd5b600080600080600060a0868803121561393857600080fd5b613941866137c8565b9450602086013593506139566040870161390f565b94979396509394606081013594506080013592915050565b60006020828403121561398057600080fd5b6133b78261385e565b60008083601f84011261399b57600080fd5b50813567ffffffffffffffff8111156139b357600080fd5b6020830191508360208260051b85010111156139ce57600080fd5b9250929050565b600080600080600080606087890312156139ee57600080fd5b863567ffffffffffffffff80821115613a0657600080fd5b613a128a838b01613989565b90985096506020890135915080821115613a2b57600080fd5b613a378a838b01613989565b90965094506040890135915080821115613a5057600080fd5b50613a5d89828a01613989565b979a9699509497509295939492505050565b600080600080600080600060e0888a031215613a8a57600080fd5b613a93886137c8565b9650613aa1602089016137c8565b95506040880135945060608801359350613abd6080890161390f565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215613aec57600080fd5b613af5836137c8565b91506138eb602084016137c8565b60008060008060008060008060006101208a8c031215613b2257600080fd5b613b2b8a6137c8565b9850613b3960208b016137c8565b975060408a0135965060608a0135955060808a0135945060a08a01359350613b6360c08b0161390f565b925060e08a013591506101008a013590509295985092959850929598565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613bc057613bc0613b81565b604052919050565b600067ffffffffffffffff821115613be257613be2613b81565b5060051b60200190565b600082601f830112613bfd57600080fd5b81356020613c12613c0d83613bc8565b613b97565b82815260059290921b84018101918181019086841115613c3157600080fd5b8286015b84811015613c5357613c46816137c8565b8352918301918301613c35565b509695505050505050565b600082601f830112613c6f57600080fd5b81356020613c7f613c0d83613bc8565b82815260059290921b84018101918181019086841115613c9e57600080fd5b8286015b84811015613c535780358352918301918301613ca2565b600082601f830112613cca57600080fd5b81356020613cda613c0d83613bc8565b82815260059290921b84018101918181019086841115613cf957600080fd5b8286015b84811015613c5357613d0e8161390f565b8352918301918301613cfd565b60008060008060008060008060006101208a8c031215613d3a57600080fd5b893567ffffffffffffffff80821115613d5257600080fd5b613d5e8d838e01613bec565b9a5060208c0135915080821115613d7457600080fd5b613d808d838e01613bec565b995060408c0135915080821115613d9657600080fd5b613da28d838e01613c5e565b985060608c0135915080821115613db857600080fd5b613dc48d838e01613c5e565b975060808c0135915080821115613dda57600080fd5b613de68d838e01613c5e565b965060a08c0135915080821115613dfc57600080fd5b613e088d838e01613c5e565b955060c08c0135915080821115613e1e57600080fd5b613e2a8d838e01613cb9565b945060e08c0135915080821115613e4057600080fd5b613e4c8d838e01613c5e565b93506101008c0135915080821115613e6357600080fd5b50613e708c828d01613c5e565b9150509295985092959850929598565b6020808252600d908201526c1dda195b939bdd14185d5cd959609a1b604082015260600190565b6020808252600e908201526d30b2323932b9b990333937bd32b760911b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561099d5761099d613ecf565b8181038181111561099d5761099d613ecf565b634e487b7160e01b600052603260045260246000fd5b600061ffff808316818103613f3857613f38613ecf565b6001019392505050565b600060018201613f5457613f54613ecf565b5060010190565b600060208284031215613f6d57600080fd5b815180151581146133b757600080fd5b65ffffffffffff818116838216019080821115613f9c57613f9c613ecf565b5092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613fdb816017850160208801613771565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161400c816028840160208801613771565b01602801949350505050565b65ffffffffffff828116828216039080821115613f9c57613f9c613ecf565b808202811582820484141761099d5761099d613ecf565b60008161405d5761405d613ecf565b506000190190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fee3e4f9d7569515307c0cdec302af069a93c9e33f325269bac70e6e22465a9796ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef139c2898040ef16910dc9f44dc697df79363da767d8bc92f2e310312b816e46da2646970667358221220ee0ee83f13dc5aafbdce911d787761b63cd95ae1f272bcb8c8d1144728c61d0364736f6c63430008110033 diff --git a/README.md b/README.md index 9c4b4ce..2ec52e1 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,7 @@ https://github.com/paxosglobal/paxos-token-contract To guard against centralized control, the addresses above utilize multisignature contracts ([source](https://github.com/paxosglobal/simple-multisig)). Any change requires the presence of a quorum of signers in the same physical location, ensuring that no individual signer can unilaterally influence a change. ### ABI and Addresses - -The contract abi is in `PaxosToken.abi`, which is the implementation contract abi. +Contract ABIs can be found in the `abis` folder. Interaction with token is done at the address of the proxy. Deployed token addresses can be found in the [Paxos docs](https://docs.paxos.com/stablecoin). diff --git a/abis/PaxosTokenV2.abi b/abis/PaxosTokenV2.abi new file mode 100644 index 0000000..f790f65 --- /dev/null +++ b/abis/PaxosTokenV2.abi @@ -0,0 +1 @@ +[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"AddressFrozen","type":"error"},{"inputs":[],"name":"AddressNotFrozen","type":"error"},{"inputs":[],"name":"AlreadyPaused","type":"error"},{"inputs":[],"name":"AlreadyUnPaused","type":"error"},{"inputs":[],"name":"ArgumentLengthMismatch","type":"error"},{"inputs":[],"name":"AuthorizationExpired","type":"error"},{"inputs":[],"name":"AuthorizationInvalid","type":"error"},{"inputs":[],"name":"BlockedAccountAuthorizer","type":"error"},{"inputs":[],"name":"CallerMustBePayee","type":"error"},{"inputs":[],"name":"ContractPaused","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"InvalidECRecoverSignature","type":"error"},{"inputs":[],"name":"InvalidPermission","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidValueS","type":"error"},{"inputs":[],"name":"OnlySupplyController","type":"error"},{"inputs":[],"name":"OnlySupplyControllerOrOwner","type":"error"},{"inputs":[],"name":"PermitExpired","type":"error"},{"inputs":[],"name":"SupplyControllerUnchanged","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroValue","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationAlreadyUsed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationUsed","type":"event"},{"anonymous":false,"inputs":[],"name":"DefaultAdminDelayChangeCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint48","name":"newDelay","type":"uint48"},{"indexed":false,"internalType":"uint48","name":"effectSchedule","type":"uint48"}],"name":"DefaultAdminDelayChangeScheduled","type":"event"},{"anonymous":false,"inputs":[],"name":"DefaultAdminTransferCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"},{"indexed":false,"internalType":"uint48","name":"acceptSchedule","type":"uint48"}],"name":"DefaultAdminTransferScheduled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"FreezeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"FrozenAddressWiped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newSanctionedAddress","type":"address"}],"name":"SanctionedAddressListUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"supplyControlAddress","type":"address"}],"name":"SupplyControlSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SupplyDecreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SupplyIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"UnfreezeAddress","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"inputs":[],"name":"ASSET_PROTECTION_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CANCEL_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_DOMAIN_HASH_DEPRECATED","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RECEIVE_WITH_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_WITH_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"assetProtectionRoleDeprecated","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"authorizationState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"beginDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"betaDelegateWhitelisterDeprecated","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"cancelAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"newDelay","type":"uint48"}],"name":"changeDefaultAdminDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"decreaseSupply","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"burnFromAddress","type":"address"}],"name":"decreaseSupplyFromAddress","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultAdminDelay","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultAdminDelayIncreaseWait","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"freezeBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"increaseSupply","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"mintToAddress","type":"address"}],"name":"increaseSupplyToAddress","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"initialDelay","type":"uint48"},{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"address","name":"pauser","type":"address"},{"internalType":"address","name":"assetProtector","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerDeprecated","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"pendingDefaultAdmin","outputs":[{"internalType":"address","name":"newAdmin","type":"address"},{"internalType":"uint48","name":"schedule","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingDefaultAdminDelay","outputs":[{"internalType":"uint48","name":"newDelay","type":"uint48"},{"internalType":"uint48","name":"schedule","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proposedOwnerDeprecated","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"receiveWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reclaimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rollbackDefaultAdminDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"supplyControlAddress","type":"address"}],"name":"setSupplyControl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyControl","outputs":[{"internalType":"contract SupplyControl","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyControllerDeprecated","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"from","type":"address[]"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"value","type":"uint256[]"}],"name":"transferFromBatch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"transferWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"from","type":"address[]"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"value","type":"uint256[]"},{"internalType":"uint256[]","name":"validAfter","type":"uint256[]"},{"internalType":"uint256[]","name":"validBefore","type":"uint256[]"},{"internalType":"bytes32[]","name":"nonce","type":"bytes32[]"},{"internalType":"uint8[]","name":"v","type":"uint8[]"},{"internalType":"bytes32[]","name":"r","type":"bytes32[]"},{"internalType":"bytes32[]","name":"s","type":"bytes32[]"}],"name":"transferWithAuthorizationBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"unfreeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"unfreezeBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"wipeFrozenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/abis/SupplyControl.abi b/abis/SupplyControl.abi new file mode 100644 index 0000000..b9ac870 --- /dev/null +++ b/abis/SupplyControl.abi @@ -0,0 +1,1105 @@ +[ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "AccountAlreadyHasSupplyControllerRole", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "AccountMissingSupplyControllerRole", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addressToAdd", + "type": "address" + } + ], + "name": "CannotAddDuplicateAddress", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "supplyController", + "type": "address" + }, + { + "internalType": "address", + "name": "burnFromAddress", + "type": "address" + } + ], + "name": "CannotBurnFromAddress", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "supplyController", + "type": "address" + }, + { + "internalType": "address", + "name": "mintToAddress", + "type": "address" + } + ], + "name": "CannotMintToAddress", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addressToRemove", + "type": "address" + } + ], + "name": "CannotRemoveNonExistantAddress", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "expected", + "type": "uint256" + } + ], + "name": "OldTimestamp", + "type": "error" + }, + { + "inputs": [], + "name": "RateLimitExceeded", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroAddress", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "supplyController", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "newAllowAnyMintAndBurnAddress", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bool", + "name": "oldAllowAnyMintAndBurnAddress", + "type": "bool" + } + ], + "name": "AllowAnyMintAndBurnAddressUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [], + "name": "DefaultAdminDelayChangeCanceled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint48", + "name": "newDelay", + "type": "uint48" + }, + { + "indexed": false, + "internalType": "uint48", + "name": "effectSchedule", + "type": "uint48" + } + ], + "name": "DefaultAdminDelayChangeScheduled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [], + "name": "DefaultAdminTransferCanceled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint48", + "name": "acceptSchedule", + "type": "uint48" + } + ], + "name": "DefaultAdminTransferScheduled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "supplyController", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "limitCapacity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "refillPerSecond", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct RateLimit.LimitConfig", + "name": "newLimitConfig", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "limitCapacity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "refillPerSecond", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct RateLimit.LimitConfig", + "name": "oldLimitConfig", + "type": "tuple" + } + ], + "name": "LimitConfigUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "supplyController", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "mintAddress", + "type": "address" + } + ], + "name": "MintAddressAddedToWhitelist", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "supplyController", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "mintAddress", + "type": "address" + } + ], + "name": "MintAddressRemovedFromWhitelist", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "previousAdminRole", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "newAdminRole", + "type": "bytes32" + } + ], + "name": "RoleAdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleGranted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleRevoked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newSupplyController", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "limitCapacity", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "refillPerSecond", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "mintAddressWhitelist", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "bool", + "name": "allowAnyMintAndBurnAddress", + "type": "bool" + } + ], + "name": "SupplyControllerAdded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "oldSupplyController", + "type": "address" + } + ], + "name": "SupplyControllerRemoved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "inputs": [], + "name": "DEFAULT_ADMIN_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "SUPPLY_CONTROLLER_MANAGER_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "SUPPLY_CONTROLLER_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "TOKEN_CONTRACT_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "acceptDefaultAdminTransfer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "supplyController_", + "type": "address" + }, + { + "internalType": "address", + "name": "mintAddress", + "type": "address" + } + ], + "name": "addMintAddressToWhitelist", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newSupplyController", + "type": "address" + }, + { + "internalType": "uint256", + "name": "limitCapacity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "refillPerSecond", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "mintAddressWhitelist", + "type": "address[]" + }, + { + "internalType": "bool", + "name": "allowAnyMintAndBurnAddress", + "type": "bool" + } + ], + "name": "addSupplyController", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "beginDefaultAdminTransfer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "burnFromAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "canBurnFromAddress", + "outputs": [], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "mintToAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "canMintToAddress", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "cancelDefaultAdminTransfer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint48", + "name": "newDelay", + "type": "uint48" + } + ], + "name": "changeDefaultAdminDelay", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "defaultAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "defaultAdminDelay", + "outputs": [ + { + "internalType": "uint48", + "name": "", + "type": "uint48" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "defaultAdminDelayIncreaseWait", + "outputs": [ + { + "internalType": "uint48", + "name": "", + "type": "uint48" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getAllSupplyControllerAddresses", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "supplyController_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "name": "getRemainingMintAmount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + } + ], + "name": "getRoleAdmin", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "supplyController_", + "type": "address" + } + ], + "name": "getSupplyControllerConfig", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "limitCapacity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "refillPerSecond", + "type": "uint256" + } + ], + "internalType": "struct RateLimit.LimitConfig", + "name": "limitConfig", + "type": "tuple" + }, + { + "internalType": "address[]", + "name": "mintAddressWhitelist", + "type": "address[]" + }, + { + "internalType": "bool", + "name": "allowAnyMintAndBurnAddress", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "initialOwner", + "type": "address" + }, + { + "internalType": "address", + "name": "supplyControllerManager", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "components": [ + { + "internalType": "address", + "name": "newSupplyController", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "limitCapacity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "refillPerSecond", + "type": "uint256" + } + ], + "internalType": "struct RateLimit.LimitConfig", + "name": "limitConfig", + "type": "tuple" + }, + { + "internalType": "address[]", + "name": "mintAddressWhitelist", + "type": "address[]" + }, + { + "internalType": "bool", + "name": "allowAnyMintAndBurnAddress", + "type": "bool" + } + ], + "internalType": "struct SupplyControl.SupplyControllerInitialization[]", + "name": "scInitializationConfig", + "type": "tuple[]" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingDefaultAdmin", + "outputs": [ + { + "internalType": "address", + "name": "newAdmin", + "type": "address" + }, + { + "internalType": "uint48", + "name": "schedule", + "type": "uint48" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingDefaultAdminDelay", + "outputs": [ + { + "internalType": "uint48", + "name": "newDelay", + "type": "uint48" + }, + { + "internalType": "uint48", + "name": "schedule", + "type": "uint48" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "supplyController_", + "type": "address" + }, + { + "internalType": "address", + "name": "mintAddress", + "type": "address" + } + ], + "name": "removeMintAddressFromWhitelist", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "oldSupplyController", + "type": "address" + } + ], + "name": "removeSupplyController", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "renounceRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "rollbackDefaultAdminDelay", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "supplyController_", + "type": "address" + }, + { + "internalType": "bool", + "name": "allowAnyMintAndBurnAddress", + "type": "bool" + } + ], + "name": "updateAllowAnyMintAndBurnAddress", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "supplyController_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "limitCapacity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "refillPerSecond", + "type": "uint256" + } + ], + "name": "updateLimitConfig", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } +] diff --git a/package-lock.json b/package-lock.json index 8dc400e..502ff75 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "PaxosToken", - "version": "0.0.1", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "PaxosToken", - "version": "0.0.1", + "version": "2.0.0", "license": "MIT", "dependencies": { "ganache-cli": "^6.12.2" diff --git a/package.json b/package.json index 2db3c93..ee319dc 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,13 @@ { "name": "PaxosToken", - "version": "0.0.1", + "version": "2.0.0", "description": "Paxos issued USD-collateralized ERC20 stablecoin", - "main": "index.js", "directories": { "test": "test" }, "scripts": { - "generate-abi": "cat artifacts/contracts/PaxosTokenV2.sol/PaxosTokenV2.json | jq -c .abi > PaxosToken.abi", - "generate-bin": "cat artifacts/contracts/PaxosTokenV2.sol/PaxosTokenV2.json | jq -r .bytecode > PaxosToken.bin", + "generate-abi": "cat artifacts/contracts/PaxosTokenV2.sol/PaxosTokenV2.json | jq -c .abi > PaxosTokenV2.abi", + "generate-bin": "cat artifacts/contracts/PaxosTokenV2.sol/PaxosTokenV2.json | jq -r .bytecode > PaxosTokenV2.bin", "compile": "npx hardhat compile --force", "coverage": "npx hardhat coverage", "flatten-impl": "npx hardhat flatten contracts/PaxosTokenV2.sol", @@ -19,14 +18,14 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/paxosglobal/pax-contracts.git" + "url": "git+https://github.com/paxosglobal/paxos-token-contracts.git" }, "author": "PAXOS", "license": "MIT", "bugs": { - "url": "https://github.com/paxosglobal/pax-contracts/issues" + "url": "https://github.com/paxosglobal/paxos-token-contracts/issues" }, - "homepage": "https://github.com/paxosglobal/pax-contracts#readme", + "homepage": "https://paxos.com/", "devDependencies": { "@nomicfoundation/hardhat-chai-matchers": "^2.0.3", "@nomicfoundation/hardhat-ethers": "^3.0.4",