@venusprotocol/venus-protocol 7.0.0 → 7.1.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +1 -1
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +1 -1
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +1 -1
- package/artifacts/@venusprotocol/solidity-utilities/contracts/MaxLoopsLimitHelper.sol/MaxLoopsLimitHelper.dbg.json +1 -1
- package/artifacts/@venusprotocol/solidity-utilities/contracts/TimeManagerV8.sol/TimeManagerV8.dbg.json +1 -1
- package/artifacts/build-info/{ddb1ade0c64d5161e7d5a6dec1e33868.json → 23955c54eec3e914a4d10c9d990fdb4c.json} +1 -1
- package/artifacts/contracts/Admin/VBNBAdmin.sol/VBNBAdmin.dbg.json +1 -1
- package/artifacts/contracts/Admin/VBNBAdminStorage.sol/IProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/Admin/VBNBAdminStorage.sol/IWBNB.dbg.json +1 -1
- package/artifacts/contracts/Admin/VBNBAdminStorage.sol/VBNBAdminStorage.dbg.json +1 -1
- package/artifacts/contracts/Admin/VBNBAdminStorage.sol/VTokenInterface.dbg.json +1 -1
- package/artifacts/contracts/DelegateBorrowers/MoveDebtDelegate.sol/MoveDebtDelegate.dbg.json +1 -1
- package/artifacts/contracts/DelegateBorrowers/MoveDebtDelegate.sol/MoveDebtDelegate.json +115 -22
- package/artifacts/contracts/DelegateBorrowers/SwapDebtDelegate.sol/SwapDebtDelegate.dbg.json +1 -1
- package/artifacts/contracts/DelegateBorrowers/SwapDebtDelegate.sol/SwapDebtDelegate.json +2 -2
- package/artifacts/contracts/Governance/TokenRedeemer.sol/TokenRedeemer.dbg.json +4 -0
- package/artifacts/contracts/Governance/TokenRedeemer.sol/TokenRedeemer.json +165 -0
- package/artifacts/contracts/InterfacesV8.sol/IComptroller.dbg.json +1 -1
- package/artifacts/contracts/InterfacesV8.sol/ILiquidator.dbg.json +1 -1
- package/artifacts/contracts/InterfacesV8.sol/IVAIController.dbg.json +1 -1
- package/artifacts/contracts/InterfacesV8.sol/IVBNB.dbg.json +1 -1
- package/artifacts/contracts/InterfacesV8.sol/IVBNB.json +19 -0
- package/artifacts/contracts/InterfacesV8.sol/IVBep20.dbg.json +1 -1
- package/artifacts/contracts/InterfacesV8.sol/IVBep20.json +19 -0
- package/artifacts/contracts/InterfacesV8.sol/IVToken.dbg.json +1 -1
- package/artifacts/contracts/InterfacesV8.sol/IVToken.json +19 -0
- package/artifacts/contracts/Liquidator/BUSDLiquidator.sol/BUSDLiquidator.dbg.json +1 -1
- package/artifacts/contracts/Liquidator/BUSDLiquidator.sol/BUSDLiquidator.json +2 -2
- package/artifacts/contracts/Liquidator/Liquidator.sol/Liquidator.dbg.json +1 -1
- package/artifacts/contracts/Liquidator/Liquidator.sol/Liquidator.json +2 -2
- package/artifacts/contracts/PegStability/IVAI.sol/IVAI.dbg.json +1 -1
- package/artifacts/contracts/PegStability/PegStability.sol/PegStability.dbg.json +1 -1
- package/artifacts/contracts/Swap/IRouterHelper.sol/IRouterHelper.dbg.json +1 -1
- package/artifacts/contracts/Swap/RouterHelper.sol/RouterHelper.dbg.json +1 -1
- package/artifacts/contracts/Swap/SwapRouter.sol/SwapRouter.dbg.json +1 -1
- package/artifacts/contracts/Swap/interfaces/IPancakePair.sol/IPancakePair.dbg.json +1 -1
- package/artifacts/contracts/Swap/interfaces/IPancakeSwapV2Factory.sol/IPancakeSwapV2Factory.dbg.json +1 -1
- package/artifacts/contracts/Swap/interfaces/IPancakeSwapV2Router.sol/IPancakeSwapV2Router.dbg.json +1 -1
- package/artifacts/contracts/Swap/interfaces/IVBNB.sol/IVBNB.dbg.json +1 -1
- package/artifacts/contracts/Swap/interfaces/IVtoken.sol/IVToken.dbg.json +1 -1
- package/artifacts/contracts/Swap/interfaces/IWBNB.sol/IWBNB.dbg.json +1 -1
- package/artifacts/contracts/Swap/interfaces/InterfaceComptroller.sol/InterfaceComptroller.dbg.json +1 -1
- package/artifacts/contracts/Swap/lib/PancakeLibrary.sol/PancakeLibrary.dbg.json +1 -1
- package/artifacts/contracts/Swap/lib/TransferHelper.sol/TransferHelper.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/Interfaces/IPoolRegistry.sol/PoolRegistryInterface.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/Interfaces/IPrime.sol/IPrime.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/Interfaces/IPrimeLiquidityProvider.sol/IPrimeLiquidityProvider.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/Interfaces/IVToken.sol/IVToken.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/Interfaces/IXVSVault.sol/IXVSVault.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/Interfaces/InterfaceComptroller.sol/InterfaceComptroller.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/Prime.sol/Prime.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/PrimeLiquidityProvider.sol/PrimeLiquidityProvider.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/PrimeLiquidityProviderStorage.sol/PrimeLiquidityProviderStorageV1.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/PrimeStorage.sol/PrimeStorageV1.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/libs/FixedMath.sol/FixedMath.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/libs/FixedMath0x.sol/FixedMath0x.dbg.json +1 -1
- package/artifacts/contracts/Tokens/Prime/libs/Scores.sol/Scores.dbg.json +1 -1
- package/artifacts/contracts/test/AccessControlManagerMock.sol/AccessControlManagerMock.dbg.json +1 -1
- package/artifacts/contracts/test/LiquidatorHarness.sol/LiquidatorHarness.dbg.json +1 -1
- package/artifacts/contracts/test/LiquidatorHarness.sol/LiquidatorHarness.json +2 -2
- package/artifacts/contracts/test/MockProtocolShareReserve.sol/IComptroller.dbg.json +1 -1
- package/artifacts/contracts/test/MockProtocolShareReserve.sol/IIncomeDestination.dbg.json +1 -1
- package/artifacts/contracts/test/MockProtocolShareReserve.sol/IMockProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/test/MockProtocolShareReserve.sol/IPoolRegistry.dbg.json +1 -1
- package/artifacts/contracts/test/MockProtocolShareReserve.sol/IPrime.dbg.json +1 -1
- package/artifacts/contracts/test/MockProtocolShareReserve.sol/IVToken.dbg.json +1 -1
- package/artifacts/contracts/test/MockProtocolShareReserve.sol/MaxLoopsLimitHelper.dbg.json +1 -1
- package/artifacts/contracts/test/MockProtocolShareReserve.sol/MockProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/test/PrimeScenario.sol/PrimeScenario.dbg.json +1 -1
- package/contracts/DelegateBorrowers/MoveDebtDelegate.sol +60 -17
- package/contracts/Governance/TokenRedeemer.sol +38 -0
- package/contracts/InterfacesV8.sol +2 -0
- package/deployments/bscmainnet/MoveDebtDelegate.json +592 -0
- package/deployments/bscmainnet/MoveDebtDelegate_Implementation.json +766 -0
- package/deployments/bscmainnet/MoveDebtDelegate_Proxy.json +253 -0
- package/deployments/bscmainnet/solcInputs/03a6c42b57bcdc7c1b76c0f541accfdb.json +69 -0
- package/deployments/bscmainnet/solcInputs/1dff3b4c1e459128170e9af3e75c7e17.json +72 -0
- package/deployments/bscmainnet.json +1080 -0
- package/deployments/bscmainnet_addresses.json +3 -0
- package/dist/deployments/bscmainnet.json +1080 -0
- package/dist/typechain/contracts/DelegateBorrowers/MoveDebtDelegate.d.ts +64 -20
- package/dist/typechain/contracts/Governance/TokenRedeemer.d.ts +158 -0
- package/dist/typechain/contracts/Governance/TokenRedeemer.js +3 -0
- package/dist/typechain/contracts/Governance/index.d.ts +1 -0
- package/dist/typechain/contracts/InterfacesV8.sol/IVBNB.d.ts +17 -1
- package/dist/typechain/contracts/InterfacesV8.sol/IVBep20.d.ts +17 -1
- package/dist/typechain/contracts/InterfacesV8.sol/IVToken.d.ts +17 -1
- package/dist/typechain/factories/contracts/DelegateBorrowers/MoveDebtDelegate__factory.d.ts +92 -20
- package/dist/typechain/factories/contracts/DelegateBorrowers/MoveDebtDelegate__factory.js +118 -25
- package/dist/typechain/factories/contracts/DelegateBorrowers/SwapDebtDelegate__factory.d.ts +1 -1
- package/dist/typechain/factories/contracts/DelegateBorrowers/SwapDebtDelegate__factory.js +1 -1
- package/dist/typechain/factories/contracts/Governance/TokenRedeemer__factory.d.ts +141 -0
- package/dist/typechain/factories/contracts/Governance/TokenRedeemer__factory.js +194 -0
- package/dist/typechain/factories/contracts/Governance/index.d.ts +1 -0
- package/dist/typechain/factories/contracts/Governance/index.js +3 -1
- package/dist/typechain/factories/contracts/InterfacesV8.sol/IVBNB__factory.d.ts +14 -0
- package/dist/typechain/factories/contracts/InterfacesV8.sol/IVBNB__factory.js +19 -0
- package/dist/typechain/factories/contracts/InterfacesV8.sol/IVBep20__factory.d.ts +14 -0
- package/dist/typechain/factories/contracts/InterfacesV8.sol/IVBep20__factory.js +19 -0
- package/dist/typechain/factories/contracts/InterfacesV8.sol/IVToken__factory.d.ts +14 -0
- package/dist/typechain/factories/contracts/InterfacesV8.sol/IVToken__factory.js +19 -0
- package/dist/typechain/factories/contracts/Liquidator/BUSDLiquidator__factory.d.ts +1 -1
- package/dist/typechain/factories/contracts/Liquidator/BUSDLiquidator__factory.js +1 -1
- package/dist/typechain/factories/contracts/Liquidator/Liquidator__factory.d.ts +1 -1
- package/dist/typechain/factories/contracts/Liquidator/Liquidator__factory.js +1 -1
- package/dist/typechain/factories/contracts/test/LiquidatorHarness__factory.d.ts +1 -1
- package/dist/typechain/factories/contracts/test/LiquidatorHarness__factory.js +1 -1
- package/dist/typechain/index.d.ts +2 -0
- package/dist/typechain/index.js +6 -4
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export declare class SwapDebtDelegate__factory extends ContractFactory {
|
|
|
13
13
|
}): TransactionRequest;
|
|
14
14
|
attach(address: string): SwapDebtDelegate;
|
|
15
15
|
connect(signer: Signer): SwapDebtDelegate__factory;
|
|
16
|
-
static readonly bytecode = "0x608060405234801561001057600080fd5b5061147f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063cdf019991161005b578063cdf01999146100d0578063e30c3978146100e3578063f2fde38b146100f4578063f5f6d3af1461010757600080fd5b8063715018a61461008d57806379ba5097146100975780638129fc1c1461009f5780638da5cb5b146100a7575b600080fd5b61009561011a565b005b61009561012e565b6100956101ad565b6033546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6100956100de366004611248565b6102c5565b6065546001600160a01b03166100b4565b610095610102366004611299565b610370565b610095610115366004611299565b6103e1565b6101226104c3565b61012c600061051d565b565b60655433906001600160a01b031681146101a15760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084015b60405180910390fd5b6101aa8161051d565b50565b600054610100900460ff16158080156101cd5750600054600160ff909116105b806101e75750303b1580156101e7575060005460ff166001145b61024a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610198565b6000805460ff19166001179055801561026d576000805461ff0019166101001790555b610275610536565b61027d610565565b80156101aa576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6102cd6104c3565b6102d5610594565b60006102e28486846105ed565b905060006102f1858584610913565b90506102fe848783610b71565b836001600160a01b0316856001600160a01b0316876001600160a01b03167f2c75dbdc6f4a567962b54b3f5994b41d5588fa0c6bcc1fb8f2ba6a39932470058585604051610356929190918252602082015260400190565b60405180910390a4505061036a6001609755565b50505050565b6103786104c3565b606580546001600160a01b0383166001600160a01b031990911681179091556103a96033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6103e96104c3565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610430573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045491906112bd565b905061047c61046b6033546001600160a01b031690565b6001600160a01b0384169083610d80565b816001600160a01b03167ff1156aae74417f7d02b9defe4b9aaf1190f2c7412655278e6bf3ee42fce77c55826040516104b791815260200190565b60405180910390a25050565b6033546001600160a01b0316331461012c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610198565b606580546001600160a01b03191690556101aa81610de8565b600054610100900460ff1661055d5760405162461bcd60e51b8152600401610198906112d6565b61012c610e3a565b600054610100900460ff1661058c5760405162461bcd60e51b8152600401610198906112d6565b61012c610e6a565b6002609754036105e65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610198565b6002609755565b600080846001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106529190611321565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561069c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c091906112bd565b90506106d76001600160a01b038316333087610e91565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561071e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074291906112bd565b905060006107508383611354565b90506107676001600160a01b038516896000610ec9565b61077b6001600160a01b0385168983610ec9565b6040516305eff7ef60e21b81526001600160a01b038881166004830152600091908a16906317bfdfbc906024016020604051808303816000875af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb91906112bd565b6040516304c11f0360e31b81526001600160a01b038a81166004830152602482018590529192506000918b1690632608f818906044016020604051808303816000875af1158015610840573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086491906112bd565b905080156108885760405163259aff3560e01b815260048101829052602401610198565b6040516305eff7ef60e21b81526001600160a01b038a81166004830152600091908c16906317bfdfbc906024016020604051808303816000875af11580156108d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f891906112bd565b90506109048184611354565b9b9a5050505050505050505050565b600080846001600160a01b0316635fe3b5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610954573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109789190611321565b9050836001600160a01b0316635fe3b5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dc9190611321565b6001600160a01b0316816001600160a01b031614610a0d57604051630c73eb0560e01b815260040160405180910390fd5b6000816001600160a01b0316637dc0d1d06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a719190611321565b60405163fc57d4df60e01b81526001600160a01b03888116600483015291925060009186919084169063fc57d4df90602401602060405180830381865afa158015610ac0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae491906112bd565b610aee919061136b565b60405163fc57d4df60e01b81526001600160a01b0388811660048301529192509083169063fc57d4df90602401602060405180830381865afa158015610b38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5c91906112bd565b610b66908261138a565b979650505050505050565b6000836001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd59190611321565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610c1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4391906112bd565b60405163856e5bb360e01b81526001600160a01b0386811660048301526024820186905291925060009187169063856e5bb3906044016020604051808303816000875af1158015610c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbc91906112bd565b90508015610ce05760405163158f1c0f60e01b815260048101829052602401610198565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015610d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4b91906112bd565b90506000610d598483611354565b9050610d6f6001600160a01b0386163383610d80565b5050505050505050565b6001609755565b6040516001600160a01b038316602482015260448101829052610de390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fde565b505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16610e615760405162461bcd60e51b8152600401610198906112d6565b61012c3361051d565b600054610100900460ff16610d795760405162461bcd60e51b8152600401610198906112d6565b6040516001600160a01b038085166024830152831660448201526064810182905261036a9085906323b872dd60e01b90608401610dac565b801580610f435750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4191906112bd565b155b610fae5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610198565b6040516001600160a01b038316602482015260448101829052610de390849063095ea7b360e01b90606401610dac565b6000611033826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110b39092919063ffffffff16565b905080516000148061105457508080602001905181019061105491906113ac565b610de35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610198565b60606110c284846000856110ca565b949350505050565b60608247101561112b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610198565b600080866001600160a01b0316858760405161114791906113fa565b60006040518083038185875af1925050503d8060008114611184576040519150601f19603f3d011682016040523d82523d6000602084013e611189565b606091505b5091509150610b6687838387606083156112045782516000036111fd576001600160a01b0385163b6111fd5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610198565b50816110c2565b6110c283838151156112195781518083602001fd5b8060405162461bcd60e51b81526004016101989190611416565b6001600160a01b03811681146101aa57600080fd5b6000806000806080858703121561125e57600080fd5b843561126981611233565b9350602085013561127981611233565b9250604085013561128981611233565b9396929550929360600135925050565b6000602082840312156112ab57600080fd5b81356112b681611233565b9392505050565b6000602082840312156112cf57600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561133357600080fd5b81516112b681611233565b634e487b7160e01b600052601160045260246000fd5b6000828210156113665761136661133e565b500390565b60008160001904831182151516156113855761138561133e565b500290565b6000826113a757634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156113be57600080fd5b815180151581146112b657600080fd5b60005b838110156113e95781810151838201526020016113d1565b8381111561036a5750506000910152565b6000825161140c8184602087016113ce565b9190910192915050565b60208152600082518060208401526114358160408501602087016113ce565b601f01601f1916919091016040019291505056fea26469706673582212206767c298d5a04b2e6c6a0950910d62b964d362170eeee44cd347680e4a821b1964736f6c634300080d0033";
|
|
16
|
+
static readonly bytecode = "0x608060405234801561001057600080fd5b5061147f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063cdf019991161005b578063cdf01999146100d0578063e30c3978146100e3578063f2fde38b146100f4578063f5f6d3af1461010757600080fd5b8063715018a61461008d57806379ba5097146100975780638129fc1c1461009f5780638da5cb5b146100a7575b600080fd5b61009561011a565b005b61009561012e565b6100956101ad565b6033546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6100956100de366004611248565b6102c5565b6065546001600160a01b03166100b4565b610095610102366004611299565b610370565b610095610115366004611299565b6103e1565b6101226104c3565b61012c600061051d565b565b60655433906001600160a01b031681146101a15760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084015b60405180910390fd5b6101aa8161051d565b50565b600054610100900460ff16158080156101cd5750600054600160ff909116105b806101e75750303b1580156101e7575060005460ff166001145b61024a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610198565b6000805460ff19166001179055801561026d576000805461ff0019166101001790555b610275610536565b61027d610565565b80156101aa576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6102cd6104c3565b6102d5610594565b60006102e28486846105ed565b905060006102f1858584610913565b90506102fe848783610b71565b836001600160a01b0316856001600160a01b0316876001600160a01b03167f2c75dbdc6f4a567962b54b3f5994b41d5588fa0c6bcc1fb8f2ba6a39932470058585604051610356929190918252602082015260400190565b60405180910390a4505061036a6001609755565b50505050565b6103786104c3565b606580546001600160a01b0383166001600160a01b031990911681179091556103a96033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6103e96104c3565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610430573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045491906112bd565b905061047c61046b6033546001600160a01b031690565b6001600160a01b0384169083610d80565b816001600160a01b03167ff1156aae74417f7d02b9defe4b9aaf1190f2c7412655278e6bf3ee42fce77c55826040516104b791815260200190565b60405180910390a25050565b6033546001600160a01b0316331461012c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610198565b606580546001600160a01b03191690556101aa81610de8565b600054610100900460ff1661055d5760405162461bcd60e51b8152600401610198906112d6565b61012c610e3a565b600054610100900460ff1661058c5760405162461bcd60e51b8152600401610198906112d6565b61012c610e6a565b6002609754036105e65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610198565b6002609755565b600080846001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106529190611321565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561069c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c091906112bd565b90506106d76001600160a01b038316333087610e91565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561071e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074291906112bd565b905060006107508383611354565b90506107676001600160a01b038516896000610ec9565b61077b6001600160a01b0385168983610ec9565b6040516305eff7ef60e21b81526001600160a01b038881166004830152600091908a16906317bfdfbc906024016020604051808303816000875af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb91906112bd565b6040516304c11f0360e31b81526001600160a01b038a81166004830152602482018590529192506000918b1690632608f818906044016020604051808303816000875af1158015610840573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086491906112bd565b905080156108885760405163259aff3560e01b815260048101829052602401610198565b6040516305eff7ef60e21b81526001600160a01b038a81166004830152600091908c16906317bfdfbc906024016020604051808303816000875af11580156108d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f891906112bd565b90506109048184611354565b9b9a5050505050505050505050565b600080846001600160a01b0316635fe3b5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610954573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109789190611321565b9050836001600160a01b0316635fe3b5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dc9190611321565b6001600160a01b0316816001600160a01b031614610a0d57604051630c73eb0560e01b815260040160405180910390fd5b6000816001600160a01b0316637dc0d1d06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a719190611321565b60405163fc57d4df60e01b81526001600160a01b03888116600483015291925060009186919084169063fc57d4df90602401602060405180830381865afa158015610ac0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae491906112bd565b610aee919061136b565b60405163fc57d4df60e01b81526001600160a01b0388811660048301529192509083169063fc57d4df90602401602060405180830381865afa158015610b38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5c91906112bd565b610b66908261138a565b979650505050505050565b6000836001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd59190611321565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610c1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4391906112bd565b60405163856e5bb360e01b81526001600160a01b0386811660048301526024820186905291925060009187169063856e5bb3906044016020604051808303816000875af1158015610c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbc91906112bd565b90508015610ce05760405163158f1c0f60e01b815260048101829052602401610198565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015610d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4b91906112bd565b90506000610d598483611354565b9050610d6f6001600160a01b0386163383610d80565b5050505050505050565b6001609755565b6040516001600160a01b038316602482015260448101829052610de390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fde565b505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16610e615760405162461bcd60e51b8152600401610198906112d6565b61012c3361051d565b600054610100900460ff16610d795760405162461bcd60e51b8152600401610198906112d6565b6040516001600160a01b038085166024830152831660448201526064810182905261036a9085906323b872dd60e01b90608401610dac565b801580610f435750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4191906112bd565b155b610fae5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610198565b6040516001600160a01b038316602482015260448101829052610de390849063095ea7b360e01b90606401610dac565b6000611033826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110b39092919063ffffffff16565b905080516000148061105457508080602001905181019061105491906113ac565b610de35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610198565b60606110c284846000856110ca565b949350505050565b60608247101561112b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610198565b600080866001600160a01b0316858760405161114791906113fa565b60006040518083038185875af1925050503d8060008114611184576040519150601f19603f3d011682016040523d82523d6000602084013e611189565b606091505b5091509150610b6687838387606083156112045782516000036111fd576001600160a01b0385163b6111fd5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610198565b50816110c2565b6110c283838151156112195781518083602001fd5b8060405162461bcd60e51b81526004016101989190611416565b6001600160a01b03811681146101aa57600080fd5b6000806000806080858703121561125e57600080fd5b843561126981611233565b9350602085013561127981611233565b9250604085013561128981611233565b9396929550929360600135925050565b6000602082840312156112ab57600080fd5b81356112b681611233565b9392505050565b6000602082840312156112cf57600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561133357600080fd5b81516112b681611233565b634e487b7160e01b600052601160045260246000fd5b6000828210156113665761136661133e565b500390565b60008160001904831182151516156113855761138561133e565b500290565b6000826113a757634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156113be57600080fd5b815180151581146112b657600080fd5b60005b838110156113e95781810151838201526020016113d1565b8381111561036a5750506000910152565b6000825161140c8184602087016113ce565b9190910192915050565b60208152600082518060208401526114358160408501602087016113ce565b601f01601f1916919091016040019291505056fea26469706673582212203c907574b8aaf21342a03d400dc4c37cb40e1f367a92b3bdf3afee1150ff372a64736f6c634300080d0033";
|
|
17
17
|
static readonly abi: readonly [{
|
|
18
18
|
readonly inputs: readonly [{
|
|
19
19
|
readonly internalType: "uint256";
|
|
@@ -240,7 +240,7 @@ const _abi = [
|
|
|
240
240
|
type: "function",
|
|
241
241
|
},
|
|
242
242
|
];
|
|
243
|
-
const _bytecode = "0x608060405234801561001057600080fd5b5061147f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063cdf019991161005b578063cdf01999146100d0578063e30c3978146100e3578063f2fde38b146100f4578063f5f6d3af1461010757600080fd5b8063715018a61461008d57806379ba5097146100975780638129fc1c1461009f5780638da5cb5b146100a7575b600080fd5b61009561011a565b005b61009561012e565b6100956101ad565b6033546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6100956100de366004611248565b6102c5565b6065546001600160a01b03166100b4565b610095610102366004611299565b610370565b610095610115366004611299565b6103e1565b6101226104c3565b61012c600061051d565b565b60655433906001600160a01b031681146101a15760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084015b60405180910390fd5b6101aa8161051d565b50565b600054610100900460ff16158080156101cd5750600054600160ff909116105b806101e75750303b1580156101e7575060005460ff166001145b61024a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610198565b6000805460ff19166001179055801561026d576000805461ff0019166101001790555b610275610536565b61027d610565565b80156101aa576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6102cd6104c3565b6102d5610594565b60006102e28486846105ed565b905060006102f1858584610913565b90506102fe848783610b71565b836001600160a01b0316856001600160a01b0316876001600160a01b03167f2c75dbdc6f4a567962b54b3f5994b41d5588fa0c6bcc1fb8f2ba6a39932470058585604051610356929190918252602082015260400190565b60405180910390a4505061036a6001609755565b50505050565b6103786104c3565b606580546001600160a01b0383166001600160a01b031990911681179091556103a96033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6103e96104c3565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610430573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045491906112bd565b905061047c61046b6033546001600160a01b031690565b6001600160a01b0384169083610d80565b816001600160a01b03167ff1156aae74417f7d02b9defe4b9aaf1190f2c7412655278e6bf3ee42fce77c55826040516104b791815260200190565b60405180910390a25050565b6033546001600160a01b0316331461012c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610198565b606580546001600160a01b03191690556101aa81610de8565b600054610100900460ff1661055d5760405162461bcd60e51b8152600401610198906112d6565b61012c610e3a565b600054610100900460ff1661058c5760405162461bcd60e51b8152600401610198906112d6565b61012c610e6a565b6002609754036105e65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610198565b6002609755565b600080846001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106529190611321565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561069c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c091906112bd565b90506106d76001600160a01b038316333087610e91565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561071e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074291906112bd565b905060006107508383611354565b90506107676001600160a01b038516896000610ec9565b61077b6001600160a01b0385168983610ec9565b6040516305eff7ef60e21b81526001600160a01b038881166004830152600091908a16906317bfdfbc906024016020604051808303816000875af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb91906112bd565b6040516304c11f0360e31b81526001600160a01b038a81166004830152602482018590529192506000918b1690632608f818906044016020604051808303816000875af1158015610840573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086491906112bd565b905080156108885760405163259aff3560e01b815260048101829052602401610198565b6040516305eff7ef60e21b81526001600160a01b038a81166004830152600091908c16906317bfdfbc906024016020604051808303816000875af11580156108d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f891906112bd565b90506109048184611354565b9b9a5050505050505050505050565b600080846001600160a01b0316635fe3b5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610954573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109789190611321565b9050836001600160a01b0316635fe3b5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dc9190611321565b6001600160a01b0316816001600160a01b031614610a0d57604051630c73eb0560e01b815260040160405180910390fd5b6000816001600160a01b0316637dc0d1d06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a719190611321565b60405163fc57d4df60e01b81526001600160a01b03888116600483015291925060009186919084169063fc57d4df90602401602060405180830381865afa158015610ac0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae491906112bd565b610aee919061136b565b60405163fc57d4df60e01b81526001600160a01b0388811660048301529192509083169063fc57d4df90602401602060405180830381865afa158015610b38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5c91906112bd565b610b66908261138a565b979650505050505050565b6000836001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd59190611321565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610c1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4391906112bd565b60405163856e5bb360e01b81526001600160a01b0386811660048301526024820186905291925060009187169063856e5bb3906044016020604051808303816000875af1158015610c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbc91906112bd565b90508015610ce05760405163158f1c0f60e01b815260048101829052602401610198565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015610d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4b91906112bd565b90506000610d598483611354565b9050610d6f6001600160a01b0386163383610d80565b5050505050505050565b6001609755565b6040516001600160a01b038316602482015260448101829052610de390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fde565b505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16610e615760405162461bcd60e51b8152600401610198906112d6565b61012c3361051d565b600054610100900460ff16610d795760405162461bcd60e51b8152600401610198906112d6565b6040516001600160a01b038085166024830152831660448201526064810182905261036a9085906323b872dd60e01b90608401610dac565b801580610f435750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4191906112bd565b155b610fae5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610198565b6040516001600160a01b038316602482015260448101829052610de390849063095ea7b360e01b90606401610dac565b6000611033826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110b39092919063ffffffff16565b905080516000148061105457508080602001905181019061105491906113ac565b610de35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610198565b60606110c284846000856110ca565b949350505050565b60608247101561112b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610198565b600080866001600160a01b0316858760405161114791906113fa565b60006040518083038185875af1925050503d8060008114611184576040519150601f19603f3d011682016040523d82523d6000602084013e611189565b606091505b5091509150610b6687838387606083156112045782516000036111fd576001600160a01b0385163b6111fd5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610198565b50816110c2565b6110c283838151156112195781518083602001fd5b8060405162461bcd60e51b81526004016101989190611416565b6001600160a01b03811681146101aa57600080fd5b6000806000806080858703121561125e57600080fd5b843561126981611233565b9350602085013561127981611233565b9250604085013561128981611233565b9396929550929360600135925050565b6000602082840312156112ab57600080fd5b81356112b681611233565b9392505050565b6000602082840312156112cf57600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561133357600080fd5b81516112b681611233565b634e487b7160e01b600052601160045260246000fd5b6000828210156113665761136661133e565b500390565b60008160001904831182151516156113855761138561133e565b500290565b6000826113a757634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156113be57600080fd5b815180151581146112b657600080fd5b60005b838110156113e95781810151838201526020016113d1565b8381111561036a5750506000910152565b6000825161140c8184602087016113ce565b9190910192915050565b60208152600082518060208401526114358160408501602087016113ce565b601f01601f1916919091016040019291505056fea26469706673582212206767c298d5a04b2e6c6a0950910d62b964d362170eeee44cd347680e4a821b1964736f6c634300080d0033";
|
|
243
|
+
const _bytecode = "0x608060405234801561001057600080fd5b5061147f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063cdf019991161005b578063cdf01999146100d0578063e30c3978146100e3578063f2fde38b146100f4578063f5f6d3af1461010757600080fd5b8063715018a61461008d57806379ba5097146100975780638129fc1c1461009f5780638da5cb5b146100a7575b600080fd5b61009561011a565b005b61009561012e565b6100956101ad565b6033546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6100956100de366004611248565b6102c5565b6065546001600160a01b03166100b4565b610095610102366004611299565b610370565b610095610115366004611299565b6103e1565b6101226104c3565b61012c600061051d565b565b60655433906001600160a01b031681146101a15760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084015b60405180910390fd5b6101aa8161051d565b50565b600054610100900460ff16158080156101cd5750600054600160ff909116105b806101e75750303b1580156101e7575060005460ff166001145b61024a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610198565b6000805460ff19166001179055801561026d576000805461ff0019166101001790555b610275610536565b61027d610565565b80156101aa576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6102cd6104c3565b6102d5610594565b60006102e28486846105ed565b905060006102f1858584610913565b90506102fe848783610b71565b836001600160a01b0316856001600160a01b0316876001600160a01b03167f2c75dbdc6f4a567962b54b3f5994b41d5588fa0c6bcc1fb8f2ba6a39932470058585604051610356929190918252602082015260400190565b60405180910390a4505061036a6001609755565b50505050565b6103786104c3565b606580546001600160a01b0383166001600160a01b031990911681179091556103a96033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6103e96104c3565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610430573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045491906112bd565b905061047c61046b6033546001600160a01b031690565b6001600160a01b0384169083610d80565b816001600160a01b03167ff1156aae74417f7d02b9defe4b9aaf1190f2c7412655278e6bf3ee42fce77c55826040516104b791815260200190565b60405180910390a25050565b6033546001600160a01b0316331461012c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610198565b606580546001600160a01b03191690556101aa81610de8565b600054610100900460ff1661055d5760405162461bcd60e51b8152600401610198906112d6565b61012c610e3a565b600054610100900460ff1661058c5760405162461bcd60e51b8152600401610198906112d6565b61012c610e6a565b6002609754036105e65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610198565b6002609755565b600080846001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106529190611321565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561069c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c091906112bd565b90506106d76001600160a01b038316333087610e91565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561071e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074291906112bd565b905060006107508383611354565b90506107676001600160a01b038516896000610ec9565b61077b6001600160a01b0385168983610ec9565b6040516305eff7ef60e21b81526001600160a01b038881166004830152600091908a16906317bfdfbc906024016020604051808303816000875af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb91906112bd565b6040516304c11f0360e31b81526001600160a01b038a81166004830152602482018590529192506000918b1690632608f818906044016020604051808303816000875af1158015610840573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086491906112bd565b905080156108885760405163259aff3560e01b815260048101829052602401610198565b6040516305eff7ef60e21b81526001600160a01b038a81166004830152600091908c16906317bfdfbc906024016020604051808303816000875af11580156108d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f891906112bd565b90506109048184611354565b9b9a5050505050505050505050565b600080846001600160a01b0316635fe3b5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610954573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109789190611321565b9050836001600160a01b0316635fe3b5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dc9190611321565b6001600160a01b0316816001600160a01b031614610a0d57604051630c73eb0560e01b815260040160405180910390fd5b6000816001600160a01b0316637dc0d1d06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a719190611321565b60405163fc57d4df60e01b81526001600160a01b03888116600483015291925060009186919084169063fc57d4df90602401602060405180830381865afa158015610ac0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae491906112bd565b610aee919061136b565b60405163fc57d4df60e01b81526001600160a01b0388811660048301529192509083169063fc57d4df90602401602060405180830381865afa158015610b38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5c91906112bd565b610b66908261138a565b979650505050505050565b6000836001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd59190611321565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610c1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4391906112bd565b60405163856e5bb360e01b81526001600160a01b0386811660048301526024820186905291925060009187169063856e5bb3906044016020604051808303816000875af1158015610c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbc91906112bd565b90508015610ce05760405163158f1c0f60e01b815260048101829052602401610198565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015610d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4b91906112bd565b90506000610d598483611354565b9050610d6f6001600160a01b0386163383610d80565b5050505050505050565b6001609755565b6040516001600160a01b038316602482015260448101829052610de390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fde565b505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16610e615760405162461bcd60e51b8152600401610198906112d6565b61012c3361051d565b600054610100900460ff16610d795760405162461bcd60e51b8152600401610198906112d6565b6040516001600160a01b038085166024830152831660448201526064810182905261036a9085906323b872dd60e01b90608401610dac565b801580610f435750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4191906112bd565b155b610fae5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610198565b6040516001600160a01b038316602482015260448101829052610de390849063095ea7b360e01b90606401610dac565b6000611033826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110b39092919063ffffffff16565b905080516000148061105457508080602001905181019061105491906113ac565b610de35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610198565b60606110c284846000856110ca565b949350505050565b60608247101561112b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610198565b600080866001600160a01b0316858760405161114791906113fa565b60006040518083038185875af1925050503d8060008114611184576040519150601f19603f3d011682016040523d82523d6000602084013e611189565b606091505b5091509150610b6687838387606083156112045782516000036111fd576001600160a01b0385163b6111fd5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610198565b50816110c2565b6110c283838151156112195781518083602001fd5b8060405162461bcd60e51b81526004016101989190611416565b6001600160a01b03811681146101aa57600080fd5b6000806000806080858703121561125e57600080fd5b843561126981611233565b9350602085013561127981611233565b9250604085013561128981611233565b9396929550929360600135925050565b6000602082840312156112ab57600080fd5b81356112b681611233565b9392505050565b6000602082840312156112cf57600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561133357600080fd5b81516112b681611233565b634e487b7160e01b600052601160045260246000fd5b6000828210156113665761136661133e565b500390565b60008160001904831182151516156113855761138561133e565b500290565b6000826113a757634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156113be57600080fd5b815180151581146112b657600080fd5b60005b838110156113e95781810151838201526020016113d1565b8381111561036a5750506000910152565b6000825161140c8184602087016113ce565b9190910192915050565b60208152600082518060208401526114358160408501602087016113ce565b601f01601f1916919091016040019291505056fea26469706673582212203c907574b8aaf21342a03d400dc4c37cb40e1f367a92b3bdf3afee1150ff372a64736f6c634300080d0033";
|
|
244
244
|
const isSuperArgs = (xs) => xs.length > 1;
|
|
245
245
|
class SwapDebtDelegate__factory extends ethers_1.ContractFactory {
|
|
246
246
|
constructor(...args) {
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { PromiseOrValue } from "../../../common";
|
|
2
|
+
import type { TokenRedeemer, TokenRedeemerInterface } from "../../../contracts/Governance/TokenRedeemer";
|
|
3
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
4
|
+
import { Signer, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
type TokenRedeemerConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class TokenRedeemer__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: TokenRedeemerConstructorParams);
|
|
8
|
+
deploy(owner_: PromiseOrValue<string>, overrides?: Overrides & {
|
|
9
|
+
from?: PromiseOrValue<string>;
|
|
10
|
+
}): Promise<TokenRedeemer>;
|
|
11
|
+
getDeployTransaction(owner_: PromiseOrValue<string>, overrides?: Overrides & {
|
|
12
|
+
from?: PromiseOrValue<string>;
|
|
13
|
+
}): TransactionRequest;
|
|
14
|
+
attach(address: string): TokenRedeemer;
|
|
15
|
+
connect(signer: Signer): TokenRedeemer__factory;
|
|
16
|
+
static readonly bytecode = "0x608060405234801561001057600080fd5b50604051610ab2380380610ab283398101604081905261002f916100f5565b600160005561003d33610055565b6100468161007c565b61004f81610055565b50610125565b600280546001600160a01b0319169055610079816100a3602090811b6103a617901c565b50565b6001600160a01b038116610079576040516342bcdf7f60e11b815260040160405180910390fd5b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006020828403121561010757600080fd5b81516001600160a01b038116811461011e57600080fd5b9392505050565b61097e806101346000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100a7578063ac9a350d146100d0578063e30c3978146100e3578063f2fde38b146100f457600080fd5b80631609be1d14610082578063715018a61461009757806379ba50971461009f575b600080fd5b610095610090366004610814565b610107565b005b61009561011d565b610095610131565b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6100956100de366004610814565b6101b0565b6002546001600160a01b03166100b4565b61009561010236600461084d565b610335565b61010f6103f8565b6101198282610452565b5050565b6101256103f8565b61012f60006104d1565b565b60025433906001600160a01b031681146101a45760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084015b60405180910390fd5b6101ad816104d1565b50565b6101b86104ea565b6101c06103f8565b6000826001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610200573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102249190610871565b6040516370a0823160e01b81523060048201529091506000906001600160a01b0385169063db006a759082906370a0823190602401602060405180830381865afa158015610276573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029a919061088e565b6040518263ffffffff1660e01b81526004016102b891815260200190565b6020604051808303816000875af11580156102d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fb919061088e565b9050801561031f5760405163eeddaac560e01b81526004810182905260240161019b565b6103298284610452565b50506101196001600055565b61033d6103f8565b600280546001600160a01b0383166001600160a01b0319909116811790915561036e6001546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001546001600160a01b0316331461012f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161019b565b6040516370a0823160e01b81523060048201526101199082906001600160a01b038516906370a0823190602401602060405180830381865afa15801561049c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c0919061088e565b6001600160a01b0385169190610543565b600280546001600160a01b03191690556101ad816103a6565b60026000540361053c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161019b565b6002600055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261059590849061059a565b505050565b60006105ef826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661066f9092919063ffffffff16565b905080516000148061061057508080602001905181019061061091906108a7565b6105955760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161019b565b606061067e8484600085610686565b949350505050565b6060824710156106e75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161019b565b600080866001600160a01b0316858760405161070391906108f9565b60006040518083038185875af1925050503d8060008114610740576040519150601f19603f3d011682016040523d82523d6000602084013e610745565b606091505b509150915061075687838387610761565b979650505050505050565b606083156107d05782516000036107c9576001600160a01b0385163b6107c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161019b565b508161067e565b61067e83838151156107e55781518083602001fd5b8060405162461bcd60e51b815260040161019b9190610915565b6001600160a01b03811681146101ad57600080fd5b6000806040838503121561082757600080fd5b8235610832816107ff565b91506020830135610842816107ff565b809150509250929050565b60006020828403121561085f57600080fd5b813561086a816107ff565b9392505050565b60006020828403121561088357600080fd5b815161086a816107ff565b6000602082840312156108a057600080fd5b5051919050565b6000602082840312156108b957600080fd5b8151801515811461086a57600080fd5b60005b838110156108e45781810151838201526020016108cc565b838111156108f3576000848401525b50505050565b6000825161090b8184602087016108c9565b9190910192915050565b60208152600082518060208401526109348160408501602087016108c9565b601f01601f1916919091016040019291505056fea2646970667358221220e9f3efc9204538ca23d5f82a5d2c80ae9c55bc7147b834bcac8d085142a7106064736f6c634300080d0033";
|
|
17
|
+
static readonly abi: readonly [{
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly internalType: "address";
|
|
20
|
+
readonly name: "owner_";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}];
|
|
23
|
+
readonly stateMutability: "nonpayable";
|
|
24
|
+
readonly type: "constructor";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly internalType: "uint256";
|
|
28
|
+
readonly name: "errCode";
|
|
29
|
+
readonly type: "uint256";
|
|
30
|
+
}];
|
|
31
|
+
readonly name: "RedeemFailed";
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly name: "ZeroAddressNotAllowed";
|
|
36
|
+
readonly type: "error";
|
|
37
|
+
}, {
|
|
38
|
+
readonly anonymous: false;
|
|
39
|
+
readonly inputs: readonly [{
|
|
40
|
+
readonly indexed: true;
|
|
41
|
+
readonly internalType: "address";
|
|
42
|
+
readonly name: "previousOwner";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
}, {
|
|
45
|
+
readonly indexed: true;
|
|
46
|
+
readonly internalType: "address";
|
|
47
|
+
readonly name: "newOwner";
|
|
48
|
+
readonly type: "address";
|
|
49
|
+
}];
|
|
50
|
+
readonly name: "OwnershipTransferStarted";
|
|
51
|
+
readonly type: "event";
|
|
52
|
+
}, {
|
|
53
|
+
readonly anonymous: false;
|
|
54
|
+
readonly inputs: readonly [{
|
|
55
|
+
readonly indexed: true;
|
|
56
|
+
readonly internalType: "address";
|
|
57
|
+
readonly name: "previousOwner";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
}, {
|
|
60
|
+
readonly indexed: true;
|
|
61
|
+
readonly internalType: "address";
|
|
62
|
+
readonly name: "newOwner";
|
|
63
|
+
readonly type: "address";
|
|
64
|
+
}];
|
|
65
|
+
readonly name: "OwnershipTransferred";
|
|
66
|
+
readonly type: "event";
|
|
67
|
+
}, {
|
|
68
|
+
readonly inputs: readonly [];
|
|
69
|
+
readonly name: "acceptOwnership";
|
|
70
|
+
readonly outputs: readonly [];
|
|
71
|
+
readonly stateMutability: "nonpayable";
|
|
72
|
+
readonly type: "function";
|
|
73
|
+
}, {
|
|
74
|
+
readonly inputs: readonly [];
|
|
75
|
+
readonly name: "owner";
|
|
76
|
+
readonly outputs: readonly [{
|
|
77
|
+
readonly internalType: "address";
|
|
78
|
+
readonly name: "";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
}];
|
|
81
|
+
readonly stateMutability: "view";
|
|
82
|
+
readonly type: "function";
|
|
83
|
+
}, {
|
|
84
|
+
readonly inputs: readonly [];
|
|
85
|
+
readonly name: "pendingOwner";
|
|
86
|
+
readonly outputs: readonly [{
|
|
87
|
+
readonly internalType: "address";
|
|
88
|
+
readonly name: "";
|
|
89
|
+
readonly type: "address";
|
|
90
|
+
}];
|
|
91
|
+
readonly stateMutability: "view";
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
}, {
|
|
94
|
+
readonly inputs: readonly [{
|
|
95
|
+
readonly internalType: "contract IVBep20";
|
|
96
|
+
readonly name: "vToken";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
}, {
|
|
99
|
+
readonly internalType: "address";
|
|
100
|
+
readonly name: "destination";
|
|
101
|
+
readonly type: "address";
|
|
102
|
+
}];
|
|
103
|
+
readonly name: "redeemAndTransfer";
|
|
104
|
+
readonly outputs: readonly [];
|
|
105
|
+
readonly stateMutability: "nonpayable";
|
|
106
|
+
readonly type: "function";
|
|
107
|
+
}, {
|
|
108
|
+
readonly inputs: readonly [];
|
|
109
|
+
readonly name: "renounceOwnership";
|
|
110
|
+
readonly outputs: readonly [];
|
|
111
|
+
readonly stateMutability: "nonpayable";
|
|
112
|
+
readonly type: "function";
|
|
113
|
+
}, {
|
|
114
|
+
readonly inputs: readonly [{
|
|
115
|
+
readonly internalType: "contract IERC20";
|
|
116
|
+
readonly name: "token";
|
|
117
|
+
readonly type: "address";
|
|
118
|
+
}, {
|
|
119
|
+
readonly internalType: "address";
|
|
120
|
+
readonly name: "destination";
|
|
121
|
+
readonly type: "address";
|
|
122
|
+
}];
|
|
123
|
+
readonly name: "sweepTokens";
|
|
124
|
+
readonly outputs: readonly [];
|
|
125
|
+
readonly stateMutability: "nonpayable";
|
|
126
|
+
readonly type: "function";
|
|
127
|
+
}, {
|
|
128
|
+
readonly inputs: readonly [{
|
|
129
|
+
readonly internalType: "address";
|
|
130
|
+
readonly name: "newOwner";
|
|
131
|
+
readonly type: "address";
|
|
132
|
+
}];
|
|
133
|
+
readonly name: "transferOwnership";
|
|
134
|
+
readonly outputs: readonly [];
|
|
135
|
+
readonly stateMutability: "nonpayable";
|
|
136
|
+
readonly type: "function";
|
|
137
|
+
}];
|
|
138
|
+
static createInterface(): TokenRedeemerInterface;
|
|
139
|
+
static connect(address: string, signerOrProvider: Signer | Provider): TokenRedeemer;
|
|
140
|
+
}
|
|
141
|
+
export {};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TokenRedeemer__factory = void 0;
|
|
5
|
+
const ethers_1 = require("ethers");
|
|
6
|
+
const _abi = [
|
|
7
|
+
{
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
internalType: "address",
|
|
11
|
+
name: "owner_",
|
|
12
|
+
type: "address",
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
stateMutability: "nonpayable",
|
|
16
|
+
type: "constructor",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
inputs: [
|
|
20
|
+
{
|
|
21
|
+
internalType: "uint256",
|
|
22
|
+
name: "errCode",
|
|
23
|
+
type: "uint256",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
name: "RedeemFailed",
|
|
27
|
+
type: "error",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
inputs: [],
|
|
31
|
+
name: "ZeroAddressNotAllowed",
|
|
32
|
+
type: "error",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
anonymous: false,
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
indexed: true,
|
|
39
|
+
internalType: "address",
|
|
40
|
+
name: "previousOwner",
|
|
41
|
+
type: "address",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: true,
|
|
45
|
+
internalType: "address",
|
|
46
|
+
name: "newOwner",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
name: "OwnershipTransferStarted",
|
|
51
|
+
type: "event",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
anonymous: false,
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
indexed: true,
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "previousOwner",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
indexed: true,
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "newOwner",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
name: "OwnershipTransferred",
|
|
70
|
+
type: "event",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [],
|
|
74
|
+
name: "acceptOwnership",
|
|
75
|
+
outputs: [],
|
|
76
|
+
stateMutability: "nonpayable",
|
|
77
|
+
type: "function",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
inputs: [],
|
|
81
|
+
name: "owner",
|
|
82
|
+
outputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "address",
|
|
85
|
+
name: "",
|
|
86
|
+
type: "address",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
stateMutability: "view",
|
|
90
|
+
type: "function",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [],
|
|
94
|
+
name: "pendingOwner",
|
|
95
|
+
outputs: [
|
|
96
|
+
{
|
|
97
|
+
internalType: "address",
|
|
98
|
+
name: "",
|
|
99
|
+
type: "address",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view",
|
|
103
|
+
type: "function",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [
|
|
107
|
+
{
|
|
108
|
+
internalType: "contract IVBep20",
|
|
109
|
+
name: "vToken",
|
|
110
|
+
type: "address",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "address",
|
|
114
|
+
name: "destination",
|
|
115
|
+
type: "address",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
name: "redeemAndTransfer",
|
|
119
|
+
outputs: [],
|
|
120
|
+
stateMutability: "nonpayable",
|
|
121
|
+
type: "function",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
inputs: [],
|
|
125
|
+
name: "renounceOwnership",
|
|
126
|
+
outputs: [],
|
|
127
|
+
stateMutability: "nonpayable",
|
|
128
|
+
type: "function",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
inputs: [
|
|
132
|
+
{
|
|
133
|
+
internalType: "contract IERC20",
|
|
134
|
+
name: "token",
|
|
135
|
+
type: "address",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
internalType: "address",
|
|
139
|
+
name: "destination",
|
|
140
|
+
type: "address",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
name: "sweepTokens",
|
|
144
|
+
outputs: [],
|
|
145
|
+
stateMutability: "nonpayable",
|
|
146
|
+
type: "function",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
inputs: [
|
|
150
|
+
{
|
|
151
|
+
internalType: "address",
|
|
152
|
+
name: "newOwner",
|
|
153
|
+
type: "address",
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
name: "transferOwnership",
|
|
157
|
+
outputs: [],
|
|
158
|
+
stateMutability: "nonpayable",
|
|
159
|
+
type: "function",
|
|
160
|
+
},
|
|
161
|
+
];
|
|
162
|
+
const _bytecode = "0x608060405234801561001057600080fd5b50604051610ab2380380610ab283398101604081905261002f916100f5565b600160005561003d33610055565b6100468161007c565b61004f81610055565b50610125565b600280546001600160a01b0319169055610079816100a3602090811b6103a617901c565b50565b6001600160a01b038116610079576040516342bcdf7f60e11b815260040160405180910390fd5b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006020828403121561010757600080fd5b81516001600160a01b038116811461011e57600080fd5b9392505050565b61097e806101346000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100a7578063ac9a350d146100d0578063e30c3978146100e3578063f2fde38b146100f457600080fd5b80631609be1d14610082578063715018a61461009757806379ba50971461009f575b600080fd5b610095610090366004610814565b610107565b005b61009561011d565b610095610131565b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6100956100de366004610814565b6101b0565b6002546001600160a01b03166100b4565b61009561010236600461084d565b610335565b61010f6103f8565b6101198282610452565b5050565b6101256103f8565b61012f60006104d1565b565b60025433906001600160a01b031681146101a45760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084015b60405180910390fd5b6101ad816104d1565b50565b6101b86104ea565b6101c06103f8565b6000826001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610200573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102249190610871565b6040516370a0823160e01b81523060048201529091506000906001600160a01b0385169063db006a759082906370a0823190602401602060405180830381865afa158015610276573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029a919061088e565b6040518263ffffffff1660e01b81526004016102b891815260200190565b6020604051808303816000875af11580156102d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fb919061088e565b9050801561031f5760405163eeddaac560e01b81526004810182905260240161019b565b6103298284610452565b50506101196001600055565b61033d6103f8565b600280546001600160a01b0383166001600160a01b0319909116811790915561036e6001546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001546001600160a01b0316331461012f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161019b565b6040516370a0823160e01b81523060048201526101199082906001600160a01b038516906370a0823190602401602060405180830381865afa15801561049c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c0919061088e565b6001600160a01b0385169190610543565b600280546001600160a01b03191690556101ad816103a6565b60026000540361053c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161019b565b6002600055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261059590849061059a565b505050565b60006105ef826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661066f9092919063ffffffff16565b905080516000148061061057508080602001905181019061061091906108a7565b6105955760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161019b565b606061067e8484600085610686565b949350505050565b6060824710156106e75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161019b565b600080866001600160a01b0316858760405161070391906108f9565b60006040518083038185875af1925050503d8060008114610740576040519150601f19603f3d011682016040523d82523d6000602084013e610745565b606091505b509150915061075687838387610761565b979650505050505050565b606083156107d05782516000036107c9576001600160a01b0385163b6107c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161019b565b508161067e565b61067e83838151156107e55781518083602001fd5b8060405162461bcd60e51b815260040161019b9190610915565b6001600160a01b03811681146101ad57600080fd5b6000806040838503121561082757600080fd5b8235610832816107ff565b91506020830135610842816107ff565b809150509250929050565b60006020828403121561085f57600080fd5b813561086a816107ff565b9392505050565b60006020828403121561088357600080fd5b815161086a816107ff565b6000602082840312156108a057600080fd5b5051919050565b6000602082840312156108b957600080fd5b8151801515811461086a57600080fd5b60005b838110156108e45781810151838201526020016108cc565b838111156108f3576000848401525b50505050565b6000825161090b8184602087016108c9565b9190910192915050565b60208152600082518060208401526109348160408501602087016108c9565b601f01601f1916919091016040019291505056fea2646970667358221220e9f3efc9204538ca23d5f82a5d2c80ae9c55bc7147b834bcac8d085142a7106064736f6c634300080d0033";
|
|
163
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
164
|
+
class TokenRedeemer__factory extends ethers_1.ContractFactory {
|
|
165
|
+
constructor(...args) {
|
|
166
|
+
if (isSuperArgs(args)) {
|
|
167
|
+
super(...args);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
super(_abi, _bytecode, args[0]);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
deploy(owner_, overrides) {
|
|
174
|
+
return super.deploy(owner_, overrides || {});
|
|
175
|
+
}
|
|
176
|
+
getDeployTransaction(owner_, overrides) {
|
|
177
|
+
return super.getDeployTransaction(owner_, overrides || {});
|
|
178
|
+
}
|
|
179
|
+
attach(address) {
|
|
180
|
+
return super.attach(address);
|
|
181
|
+
}
|
|
182
|
+
connect(signer) {
|
|
183
|
+
return super.connect(signer);
|
|
184
|
+
}
|
|
185
|
+
static createInterface() {
|
|
186
|
+
return new ethers_1.utils.Interface(_abi);
|
|
187
|
+
}
|
|
188
|
+
static connect(address, signerOrProvider) {
|
|
189
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
exports.TokenRedeemer__factory = TokenRedeemer__factory;
|
|
193
|
+
TokenRedeemer__factory.bytecode = _bytecode;
|
|
194
|
+
TokenRedeemer__factory.abi = _abi;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VTreasuryV8__factory = exports.VTreasury__factory = void 0;
|
|
3
|
+
exports.VTreasuryV8__factory = exports.VTreasury__factory = exports.TokenRedeemer__factory = void 0;
|
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
7
|
+
var TokenRedeemer__factory_1 = require("./TokenRedeemer__factory");
|
|
8
|
+
Object.defineProperty(exports, "TokenRedeemer__factory", { enumerable: true, get: function () { return TokenRedeemer__factory_1.TokenRedeemer__factory; } });
|
|
7
9
|
var VTreasury__factory_1 = require("./VTreasury__factory");
|
|
8
10
|
Object.defineProperty(exports, "VTreasury__factory", { enumerable: true, get: function () { return VTreasury__factory_1.VTreasury__factory; } });
|
|
9
11
|
var VTreasuryV8__factory_1 = require("./VTreasuryV8__factory");
|
|
@@ -130,6 +130,20 @@ export declare class IVBNB__factory {
|
|
|
130
130
|
readonly outputs: readonly [];
|
|
131
131
|
readonly stateMutability: "payable";
|
|
132
132
|
readonly type: "function";
|
|
133
|
+
}, {
|
|
134
|
+
readonly inputs: readonly [{
|
|
135
|
+
readonly internalType: "uint256";
|
|
136
|
+
readonly name: "redeemTokens";
|
|
137
|
+
readonly type: "uint256";
|
|
138
|
+
}];
|
|
139
|
+
readonly name: "redeem";
|
|
140
|
+
readonly outputs: readonly [{
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
readonly name: "";
|
|
143
|
+
readonly type: "uint256";
|
|
144
|
+
}];
|
|
145
|
+
readonly stateMutability: "nonpayable";
|
|
146
|
+
readonly type: "function";
|
|
133
147
|
}, {
|
|
134
148
|
readonly inputs: readonly [];
|
|
135
149
|
readonly name: "totalSupply";
|
|
@@ -171,6 +171,25 @@ const _abi = [
|
|
|
171
171
|
stateMutability: "payable",
|
|
172
172
|
type: "function",
|
|
173
173
|
},
|
|
174
|
+
{
|
|
175
|
+
inputs: [
|
|
176
|
+
{
|
|
177
|
+
internalType: "uint256",
|
|
178
|
+
name: "redeemTokens",
|
|
179
|
+
type: "uint256",
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
name: "redeem",
|
|
183
|
+
outputs: [
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint256",
|
|
186
|
+
name: "",
|
|
187
|
+
type: "uint256",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
stateMutability: "nonpayable",
|
|
191
|
+
type: "function",
|
|
192
|
+
},
|
|
174
193
|
{
|
|
175
194
|
inputs: [],
|
|
176
195
|
name: "totalSupply",
|
|
@@ -156,6 +156,20 @@ export declare class IVBep20__factory {
|
|
|
156
156
|
}];
|
|
157
157
|
readonly stateMutability: "nonpayable";
|
|
158
158
|
readonly type: "function";
|
|
159
|
+
}, {
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly internalType: "uint256";
|
|
162
|
+
readonly name: "redeemTokens";
|
|
163
|
+
readonly type: "uint256";
|
|
164
|
+
}];
|
|
165
|
+
readonly name: "redeem";
|
|
166
|
+
readonly outputs: readonly [{
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly name: "";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly stateMutability: "nonpayable";
|
|
172
|
+
readonly type: "function";
|
|
159
173
|
}, {
|
|
160
174
|
readonly inputs: readonly [{
|
|
161
175
|
readonly internalType: "address";
|
|
@@ -206,6 +206,25 @@ const _abi = [
|
|
|
206
206
|
stateMutability: "nonpayable",
|
|
207
207
|
type: "function",
|
|
208
208
|
},
|
|
209
|
+
{
|
|
210
|
+
inputs: [
|
|
211
|
+
{
|
|
212
|
+
internalType: "uint256",
|
|
213
|
+
name: "redeemTokens",
|
|
214
|
+
type: "uint256",
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
name: "redeem",
|
|
218
|
+
outputs: [
|
|
219
|
+
{
|
|
220
|
+
internalType: "uint256",
|
|
221
|
+
name: "",
|
|
222
|
+
type: "uint256",
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
stateMutability: "nonpayable",
|
|
226
|
+
type: "function",
|
|
227
|
+
},
|
|
209
228
|
{
|
|
210
229
|
inputs: [
|
|
211
230
|
{
|
|
@@ -116,6 +116,20 @@ export declare class IVToken__factory {
|
|
|
116
116
|
}];
|
|
117
117
|
readonly stateMutability: "view";
|
|
118
118
|
readonly type: "function";
|
|
119
|
+
}, {
|
|
120
|
+
readonly inputs: readonly [{
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
readonly name: "redeemTokens";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}];
|
|
125
|
+
readonly name: "redeem";
|
|
126
|
+
readonly outputs: readonly [{
|
|
127
|
+
readonly internalType: "uint256";
|
|
128
|
+
readonly name: "";
|
|
129
|
+
readonly type: "uint256";
|
|
130
|
+
}];
|
|
131
|
+
readonly stateMutability: "nonpayable";
|
|
132
|
+
readonly type: "function";
|
|
119
133
|
}, {
|
|
120
134
|
readonly inputs: readonly [];
|
|
121
135
|
readonly name: "totalSupply";
|
|
@@ -153,6 +153,25 @@ const _abi = [
|
|
|
153
153
|
stateMutability: "view",
|
|
154
154
|
type: "function",
|
|
155
155
|
},
|
|
156
|
+
{
|
|
157
|
+
inputs: [
|
|
158
|
+
{
|
|
159
|
+
internalType: "uint256",
|
|
160
|
+
name: "redeemTokens",
|
|
161
|
+
type: "uint256",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
name: "redeem",
|
|
165
|
+
outputs: [
|
|
166
|
+
{
|
|
167
|
+
internalType: "uint256",
|
|
168
|
+
name: "",
|
|
169
|
+
type: "uint256",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
stateMutability: "nonpayable",
|
|
173
|
+
type: "function",
|
|
174
|
+
},
|
|
156
175
|
{
|
|
157
176
|
inputs: [],
|
|
158
177
|
name: "totalSupply",
|