@coti-io/coti-contracts 1.1.0 → 1.2.0
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/.github/workflows/npm-publish.yml +18 -14
- package/README.md +3 -1
- package/contracts/disperse/coinByRatio/FixedRatioCoinDisperser.sol +452 -0
- package/contracts/disperse/coinByRatio/FixedRatioCoinDisperserLeftoverS1.sol +490 -0
- package/contracts/disperse/coinByRatio/FixedRatioCoinDisperserUnlimitedWindow.sol +432 -0
- package/contracts/disperse/disperseToken/MintDisperser.sol +120 -0
- package/contracts/disperse/disperseToken/TokenDisperser.sol +139 -0
- package/contracts/mocks/token/ERC20Mock.sol +19 -0
- package/contracts/mocks/token/PrivateERC20/EncryptedTokenReceiverMock.sol +18 -0
- package/contracts/mocks/token/PrivateERC20/PrivacyBridgeERC20Mock.sol +13 -0
- package/contracts/mocks/token/PrivateERC20/PrivateERC20AuditorSupplyMock.sol +44 -0
- package/contracts/mocks/token/PrivateERC20/PrivateERC20CappedMock.sol +23 -0
- package/contracts/mocks/token/PrivateERC20/PrivateERC20GtCallerMock.sol +29 -0
- package/contracts/mocks/token/PrivateERC20/PrivateERC20Mock.sol +9 -4
- package/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol +39 -0
- package/contracts/mocks/token/PrivateERC20/PublicReentrantTokenReceiverMock.sol +29 -0
- package/contracts/mocks/token/PrivateERC20/PublicTokenReceiverBoolMock.sol +18 -0
- package/contracts/mocks/token/PrivateERC20/PublicTokenReceiverMock.sol +12 -0
- package/contracts/mocks/utils/mpc/Arithmetic128TestsContract.sol +123 -0
- package/contracts/mocks/utils/mpc/Arithmetic256TestsContract.sol +122 -0
- package/contracts/mocks/utils/mpc/Bitwise128TestsContract.sol +65 -0
- package/contracts/mocks/utils/mpc/Bitwise256TestsContract.sol +65 -0
- package/contracts/mocks/utils/mpc/CheckedArithmetic128WithOverflowBitTestsContract.sol +64 -0
- package/contracts/mocks/utils/mpc/CheckedArithmetic256WithOverflowBitTestsContract.sol +64 -0
- package/contracts/mocks/utils/mpc/Comparison128TestsContract.sol +98 -0
- package/contracts/mocks/utils/mpc/Comparison256TestsContract.sol +98 -0
- package/contracts/mocks/utils/mpc/MinMax128TestsContract.sol +44 -0
- package/contracts/mocks/utils/mpc/MinMax256TestsContract.sol +44 -0
- package/contracts/mocks/utils/mpc/MinimalImplementation.sol +55 -0
- package/contracts/mocks/utils/mpc/MinimalProxy.sol +27 -0
- package/contracts/mocks/utils/mpc/MpcOperations128TestContract.sol +267 -0
- package/contracts/mocks/utils/mpc/MpcOperationsTestContract.sol +334 -0
- package/contracts/mocks/utils/mpc/Mux128TestsContract.sol +24 -0
- package/contracts/mocks/utils/mpc/Mux256TestsContract.sol +24 -0
- package/contracts/mocks/utils/mpc/OnBoard128TestsContract.sol +93 -0
- package/contracts/mocks/utils/mpc/OnBoard256TestsContract.sol +116 -0
- package/contracts/mocks/utils/mpc/PrivacyImplementationV1.sol +157 -0
- package/contracts/mocks/utils/mpc/PrivacyImplementationV2.sol +133 -0
- package/contracts/mocks/utils/mpc/PrivacyProxy.sol +137 -0
- package/contracts/mocks/utils/mpc/Random128TestsContract.sol +32 -0
- package/contracts/mocks/utils/mpc/Random256TestsContract.sol +32 -0
- package/contracts/mocks/utils/mpc/Shift128TestsContract.sol +36 -0
- package/contracts/mocks/utils/mpc/Shift256TestsContract.sol +36 -0
- package/contracts/mocks/utils/mpc/Transfer128TestsContract.sol +29 -0
- package/contracts/mocks/utils/mpc/Transfer256TestsContract.sol +29 -0
- package/contracts/mocks/utils/mpc/TransferWithAllowance128TestsContract.sol +32 -0
- package/contracts/mocks/utils/mpc/TransferWithAllowance256TestsContract.sol +32 -0
- package/contracts/mocks/utils/mpc/ValidateCiphertext128TestsContract.sol +59 -0
- package/contracts/mocks/utils/mpc/ValidateCiphertext256TestsContract.sol +63 -0
- package/contracts/mocks/utils/mpc/ValidateCiphertextTestsContract.sol +99 -0
- package/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock.sol +7 -6
- package/contracts/node/CotiNodeRewards.sol +199 -0
- package/contracts/node/SoulboundNodeNFT.sol +519 -0
- package/contracts/privacyBridge/PrivacyBridge.sol +318 -0
- package/contracts/privacyBridge/PrivacyBridgeCotiNative.sol +268 -0
- package/contracts/privacyBridge/PrivacyBridgeERC20.sol +251 -0
- package/contracts/privacyBridge/PrivacyBridgeUSDCe.sol +16 -0
- package/contracts/privacyBridge/PrivacyBridgeUSDT.sol +17 -0
- package/contracts/privacyBridge/PrivacyBridgeWADA.sol +17 -0
- package/contracts/privacyBridge/PrivacyBridgeWBTC.sol +17 -0
- package/contracts/privacyBridge/PrivacyBridgeWETH.sol +17 -0
- package/contracts/privacyBridge/PrivacyBridgegCoti.sol +17 -0
- package/contracts/token/PrivateERC20/IPrivateERC20.sol +273 -40
- package/contracts/token/PrivateERC20/ITokenReceiver.sol +17 -0
- package/contracts/token/PrivateERC20/ITokenReceiverEncrypted.sol +20 -0
- package/contracts/token/PrivateERC20/PrivateERC20.sol +861 -152
- package/contracts/token/PrivateERC20/tokens/PrivateBridgedUSDC.sol +17 -0
- package/contracts/token/PrivateERC20/tokens/PrivateCOTI.sol +13 -0
- package/contracts/token/PrivateERC20/tokens/PrivateCOTITreasuryGovernanceToken.sol +17 -0
- package/contracts/token/PrivateERC20/tokens/PrivateTetherUSD.sol +17 -0
- package/contracts/token/PrivateERC20/tokens/PrivateWrappedADA.sol +17 -0
- package/contracts/token/PrivateERC20/tokens/PrivateWrappedBTC.sol +17 -0
- package/contracts/token/PrivateERC20/tokens/PrivateWrappedEther.sol +13 -0
- package/contracts/utils/mpc/MpcCore.sol +10780 -4962
- package/contracts/utils/mpc/MpcInterface.sol +7 -2
- package/hardhat/gasPriceBump.ts +60 -0
- package/hardhat.config.ts +60 -12
- package/package.json +21 -3
- package/scripts/deploySoulboundNodeNFT.ts +57 -0
- package/test/token/PrivateERC20/PrivacyBridge.fees.test.ts +327 -0
- package/test/token/PrivateERC20/PrivateERC20.test.ts +1109 -268
- package/test/utils/mpc/Bitwise128.test.ts +92 -0
- package/test/utils/mpc/Bitwise256.test.ts +101 -0
- package/test/utils/mpc/BuildInputText128.test.ts +398 -0
- package/test/utils/mpc/CheckedArithmetic128.test.ts +45 -0
- package/test/utils/mpc/CheckedArithmetic256.test.ts +45 -0
- package/test/utils/mpc/Comparison128.test.ts +48 -0
- package/test/utils/mpc/Comparison256.test.ts +48 -0
- package/test/utils/mpc/InvalidCiphertext.test.ts +179 -0
- package/test/utils/mpc/InvalidCiphertext128.test.ts +179 -0
- package/test/utils/mpc/InvalidCiphertext256.test.ts +201 -0
- package/test/utils/mpc/InvalidTransfer128.test.ts +166 -0
- package/test/utils/mpc/InvalidTransfer256.test.ts +158 -0
- package/test/utils/mpc/MinMax128.test.ts +44 -0
- package/test/utils/mpc/MinMax256.test.ts +44 -0
- package/test/utils/mpc/MinimalProxyDemo.test.ts +280 -0
- package/test/utils/mpc/MpcOperations.test.ts +589 -0
- package/test/utils/mpc/MpcOperations128.test.ts +632 -0
- package/test/utils/mpc/Mux128.test.ts +41 -0
- package/test/utils/mpc/Mux256.test.ts +41 -0
- package/test/utils/mpc/NegativeCases.test.ts +478 -0
- package/test/utils/mpc/NegativeCases128.test.ts +237 -0
- package/test/utils/mpc/NegativeCases256.test.ts +236 -0
- package/test/utils/mpc/OnBoard128.test.ts +90 -0
- package/test/utils/mpc/OnBoard256.test.ts +114 -0
- package/test/utils/mpc/Precompile128.test.ts +51 -0
- package/test/utils/mpc/Precompile256.test.ts +115 -0
- package/test/utils/mpc/ProxyValidation.test.ts +199 -0
- package/test/utils/mpc/Random128.test.ts +47 -0
- package/test/utils/mpc/Random256.test.ts +47 -0
- package/test/utils/mpc/Shift128.test.ts +41 -0
- package/test/utils/mpc/Shift256.test.ts +41 -0
- package/test/utils/mpc/Transfer128.test.ts +46 -0
- package/test/utils/mpc/Transfer256.test.ts +46 -0
- package/test/utils/mpc/TransferWithAllowance128.test.ts +48 -0
- package/test/utils/mpc/TransferWithAllowance256.test.ts +48 -0
- package/test/utils/mpc/UpgradeablePrivacyProxy.test.ts +307 -0
- package/test/utils/mpc/ValidateCiphertext.test.ts +221 -0
- package/test/utils/mpc/ValidateCiphertext256.test.ts +161 -0
- package/test/utils/mpc/ValidateCiphertext256Decryption.test.ts +383 -0
- package/test/utils/mpc/WalletEncryptionFailures.test.ts +494 -0
- package/test/utils/privateErc20Helpers.ts +97 -0
- package/typechain-types/@openzeppelin/contracts/access/Ownable.ts +153 -0
- package/typechain-types/@openzeppelin/contracts/access/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/index.ts +2 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts +262 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.ts +143 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts +6 -0
- package/typechain-types/@openzeppelin/contracts/token/index.ts +2 -0
- package/typechain-types/contracts/disperse/coinByRatio/FixedRatioCoinDisperser.ts +679 -0
- package/typechain-types/contracts/disperse/coinByRatio/index.ts +4 -0
- package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/IMintableERC20.ts +97 -0
- package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/MintDisperser.ts +206 -0
- package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/index.ts +5 -0
- package/typechain-types/contracts/disperse/disperseToken/TokenDisperser.ts +191 -0
- package/typechain-types/contracts/disperse/disperseToken/index.ts +6 -0
- package/typechain-types/contracts/disperse/index.ts +7 -0
- package/typechain-types/contracts/index.ts +2 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20Mock.ts +77 -60
- package/typechain-types/contracts/mocks/utils/mpc/Arithmetic128TestsContract.ts +311 -0
- package/typechain-types/contracts/mocks/utils/mpc/Arithmetic256TestsContract.ts +311 -0
- package/typechain-types/contracts/mocks/utils/mpc/Bitwise128TestsContract.ts +179 -0
- package/typechain-types/contracts/mocks/utils/mpc/Bitwise256TestsContract.ts +179 -0
- package/typechain-types/contracts/mocks/utils/mpc/CheckedArithmetic128WithOverflowBitTestsContract.ts +206 -0
- package/typechain-types/contracts/mocks/utils/mpc/CheckedArithmetic256WithOverflowBitTestsContract.ts +206 -0
- package/typechain-types/contracts/mocks/utils/mpc/Comparison128TestsContract.ts +278 -0
- package/typechain-types/contracts/mocks/utils/mpc/Comparison256TestsContract.ts +278 -0
- package/typechain-types/contracts/mocks/utils/mpc/MinMax128TestsContract.ts +142 -0
- package/typechain-types/contracts/mocks/utils/mpc/MinMax256TestsContract.ts +142 -0
- package/typechain-types/contracts/mocks/utils/mpc/MinimalImplementation.ts +259 -0
- package/typechain-types/contracts/mocks/utils/mpc/MinimalProxy.ts +90 -0
- package/typechain-types/contracts/mocks/utils/mpc/MpcOperations128TestContract.ts +388 -0
- package/typechain-types/contracts/mocks/utils/mpc/MpcOperationsTestContract.ts +455 -0
- package/typechain-types/contracts/mocks/utils/mpc/Mux128TestsContract.ts +109 -0
- package/typechain-types/contracts/mocks/utils/mpc/Mux256TestsContract.ts +109 -0
- package/typechain-types/contracts/mocks/utils/mpc/OnBoard128TestsContract.ts +166 -0
- package/typechain-types/contracts/mocks/utils/mpc/OnBoard256TestsContract.ts +194 -0
- package/typechain-types/contracts/mocks/utils/mpc/PrivacyImplementationV1.ts +385 -0
- package/typechain-types/contracts/mocks/utils/mpc/PrivacyImplementationV2.ts +441 -0
- package/typechain-types/contracts/mocks/utils/mpc/PrivacyProxy.ts +201 -0
- package/typechain-types/contracts/mocks/utils/mpc/Random128TestsContract.ts +131 -0
- package/typechain-types/contracts/mocks/utils/mpc/Random256TestsContract.ts +131 -0
- package/typechain-types/contracts/mocks/utils/mpc/Shift128TestsContract.ts +142 -0
- package/typechain-types/contracts/mocks/utils/mpc/Shift256TestsContract.ts +142 -0
- package/typechain-types/contracts/mocks/utils/mpc/Transfer128TestsContract.ts +109 -0
- package/typechain-types/contracts/mocks/utils/mpc/Transfer256TestsContract.ts +109 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance128TestsContract.ts +128 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance256TestsContract.ts +128 -0
- package/typechain-types/contracts/mocks/utils/mpc/ValidateCiphertext128TestsContract.ts +198 -0
- package/typechain-types/contracts/mocks/utils/mpc/ValidateCiphertext256TestsContract.ts +182 -0
- package/typechain-types/contracts/mocks/utils/mpc/ValidateCiphertextTestsContract.ts +257 -0
- package/typechain-types/contracts/mocks/utils/mpc/index.ts +32 -8
- package/typechain-types/contracts/token/PrivateERC20/IPrivateERC20.ts +77 -60
- package/typechain-types/contracts/token/PrivateERC20/PrivateERC20.ts +77 -60
- package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +111 -10
- package/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.ts +74 -0
- package/typechain-types/factories/@openzeppelin/contracts/access/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/index.ts +1 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +205 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.ts +100 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/index.ts +1 -0
- package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperser__factory.ts +759 -0
- package/typechain-types/factories/contracts/disperse/coinByRatio/index.ts +4 -0
- package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/IMintableERC20__factory.ts +43 -0
- package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/MintDisperser__factory.ts +185 -0
- package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/disperse/disperseToken/TokenDisperser__factory.ts +198 -0
- package/typechain-types/factories/contracts/disperse/disperseToken/index.ts +5 -0
- package/typechain-types/factories/contracts/disperse/index.ts +5 -0
- package/typechain-types/factories/contracts/index.ts +1 -0
- package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +179 -47
- package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic128TestsContract__factory.ts +330 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic256TestsContract__factory.ts +330 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise128TestsContract__factory.ts +184 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise256TestsContract__factory.ts +184 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmetic128WithOverflowBitTestsContract__factory.ts +203 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmetic256WithOverflowBitTestsContract__factory.ts +203 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison128TestsContract__factory.ts +295 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison256TestsContract__factory.ts +295 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinMax128TestsContract__factory.ts +147 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinMax256TestsContract__factory.ts +147 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinimalImplementation__factory.ts +263 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinimalProxy__factory.ts +104 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MpcOperations128TestContract__factory.ts +723 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/MpcOperationsTestContract__factory.ts +1410 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Mux128TestsContract__factory.ts +115 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Mux256TestsContract__factory.ts +115 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/OnBoard128TestsContract__factory.ts +175 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/OnBoard256TestsContract__factory.ts +205 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyImplementationV1__factory.ts +521 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyImplementationV2__factory.ts +648 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyProxy__factory.ts +179 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Random128TestsContract__factory.ts +131 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Random256TestsContract__factory.ts +131 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Shift128TestsContract__factory.ts +147 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Shift256TestsContract__factory.ts +147 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Transfer128TestsContract__factory.ts +135 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Transfer256TestsContract__factory.ts +135 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance128TestsContract__factory.ts +154 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance256TestsContract__factory.ts +154 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertext128TestsContract__factory.ts +190 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertext256TestsContract__factory.ts +210 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertextTestsContract__factory.ts +260 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +32 -8
- package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +7 -7
- package/typechain-types/factories/contracts/token/PrivateERC20/IPrivateERC20__factory.ts +174 -42
- package/typechain-types/factories/contracts/token/PrivateERC20/PrivateERC20__factory.ts +174 -42
- package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +126 -0
- package/typechain-types/hardhat.d.ts +638 -80
- package/typechain-types/index.ts +78 -16
- package/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract.sol +0 -260
- package/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract.sol +0 -264
- package/contracts/mocks/utils/mpc/Bitwise128BitTestsContract.sol +0 -91
- package/contracts/mocks/utils/mpc/Bitwise256BitTestsContract.sol +0 -91
- package/contracts/mocks/utils/mpc/Comparison128BitTestsContract.sol +0 -158
- package/contracts/mocks/utils/mpc/Comparison256BitTestsContract.sol +0 -158
- package/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract.sol +0 -185
- package/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract.sol +0 -190
- package/contracts/mocks/utils/mpc/README.md +0 -486
- package/test/utils/mpc/Unsigned128BitIntegers.test.ts +0 -945
- package/test/utils/mpc/Unsigned256BitIntegers.test.ts +0 -1124
- package/test/utils/mpc/helpers.ts +0 -77
package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperser__factory.ts
ADDED
|
@@ -0,0 +1,759 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Contract,
|
|
6
|
+
ContractFactory,
|
|
7
|
+
ContractTransactionResponse,
|
|
8
|
+
Interface,
|
|
9
|
+
} from "ethers";
|
|
10
|
+
import type {
|
|
11
|
+
Signer,
|
|
12
|
+
BigNumberish,
|
|
13
|
+
AddressLike,
|
|
14
|
+
ContractDeployTransaction,
|
|
15
|
+
ContractRunner,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import type { NonPayableOverrides } from "../../../../common";
|
|
18
|
+
import type {
|
|
19
|
+
FixedRatioCoinDisperser,
|
|
20
|
+
FixedRatioCoinDisperserInterface,
|
|
21
|
+
} from "../../../../contracts/disperse/coinByRatio/FixedRatioCoinDisperser";
|
|
22
|
+
|
|
23
|
+
const _abi = [
|
|
24
|
+
{
|
|
25
|
+
inputs: [
|
|
26
|
+
{
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "_pointsToken",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "_owner",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "uint256",
|
|
38
|
+
name: "_startBlock",
|
|
39
|
+
type: "uint256",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "uint256",
|
|
43
|
+
name: "_endBlock",
|
|
44
|
+
type: "uint256",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
stateMutability: "nonpayable",
|
|
48
|
+
type: "constructor",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
inputs: [],
|
|
52
|
+
name: "AlreadyFinalized",
|
|
53
|
+
type: "error",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
inputs: [],
|
|
57
|
+
name: "AmountZero",
|
|
58
|
+
type: "error",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
inputs: [],
|
|
62
|
+
name: "BalanceManipulation",
|
|
63
|
+
type: "error",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
inputs: [],
|
|
67
|
+
name: "ContractMustPull",
|
|
68
|
+
type: "error",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
inputs: [],
|
|
72
|
+
name: "ContractPaused",
|
|
73
|
+
type: "error",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
inputs: [],
|
|
77
|
+
name: "EthTransferFailed",
|
|
78
|
+
type: "error",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
inputs: [],
|
|
82
|
+
name: "InsufficientBalance",
|
|
83
|
+
type: "error",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
inputs: [],
|
|
87
|
+
name: "InsufficientEthBalance",
|
|
88
|
+
type: "error",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
inputs: [],
|
|
92
|
+
name: "InvalidAddress",
|
|
93
|
+
type: "error",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
inputs: [],
|
|
97
|
+
name: "InvalidBlockRange",
|
|
98
|
+
type: "error",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [],
|
|
102
|
+
name: "NoDust",
|
|
103
|
+
type: "error",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [],
|
|
107
|
+
name: "NoExcess",
|
|
108
|
+
type: "error",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
inputs: [],
|
|
112
|
+
name: "NoPointsLeft",
|
|
113
|
+
type: "error",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
inputs: [],
|
|
117
|
+
name: "NotFinalized",
|
|
118
|
+
type: "error",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
inputs: [],
|
|
122
|
+
name: "NotOwner",
|
|
123
|
+
type: "error",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
inputs: [],
|
|
127
|
+
name: "NothingToWithdraw",
|
|
128
|
+
type: "error",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
inputs: [],
|
|
132
|
+
name: "OutOfWindow",
|
|
133
|
+
type: "error",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
inputs: [],
|
|
137
|
+
name: "OverCapacity",
|
|
138
|
+
type: "error",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
inputs: [],
|
|
142
|
+
name: "OwnerZeroAddress",
|
|
143
|
+
type: "error",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
inputs: [],
|
|
147
|
+
name: "PayoutZero",
|
|
148
|
+
type: "error",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
inputs: [],
|
|
152
|
+
name: "PoolZero",
|
|
153
|
+
type: "error",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
inputs: [],
|
|
157
|
+
name: "RedemptionNotClosed",
|
|
158
|
+
type: "error",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
inputs: [],
|
|
162
|
+
name: "SnapshotZero",
|
|
163
|
+
type: "error",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
inputs: [],
|
|
167
|
+
name: "SupplyZero",
|
|
168
|
+
type: "error",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
inputs: [],
|
|
172
|
+
name: "TokenZeroAddress",
|
|
173
|
+
type: "error",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
inputs: [],
|
|
177
|
+
name: "WindowActive",
|
|
178
|
+
type: "error",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
inputs: [],
|
|
182
|
+
name: "WithdrawFailed",
|
|
183
|
+
type: "error",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
anonymous: false,
|
|
187
|
+
inputs: [
|
|
188
|
+
{
|
|
189
|
+
indexed: false,
|
|
190
|
+
internalType: "uint256",
|
|
191
|
+
name: "amount",
|
|
192
|
+
type: "uint256",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
name: "DustWithdrawn",
|
|
196
|
+
type: "event",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
anonymous: false,
|
|
200
|
+
inputs: [
|
|
201
|
+
{
|
|
202
|
+
indexed: false,
|
|
203
|
+
internalType: "uint256",
|
|
204
|
+
name: "totalPayoutPool",
|
|
205
|
+
type: "uint256",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
indexed: false,
|
|
209
|
+
internalType: "uint256",
|
|
210
|
+
name: "totalRedeemablePoints",
|
|
211
|
+
type: "uint256",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
indexed: false,
|
|
215
|
+
internalType: "uint256",
|
|
216
|
+
name: "accPayoutPerPoint",
|
|
217
|
+
type: "uint256",
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
name: "Finalized",
|
|
221
|
+
type: "event",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
anonymous: false,
|
|
225
|
+
inputs: [
|
|
226
|
+
{
|
|
227
|
+
indexed: true,
|
|
228
|
+
internalType: "address",
|
|
229
|
+
name: "from",
|
|
230
|
+
type: "address",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
indexed: false,
|
|
234
|
+
internalType: "uint256",
|
|
235
|
+
name: "amount",
|
|
236
|
+
type: "uint256",
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
name: "Funded",
|
|
240
|
+
type: "event",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
anonymous: false,
|
|
244
|
+
inputs: [
|
|
245
|
+
{
|
|
246
|
+
indexed: true,
|
|
247
|
+
internalType: "address",
|
|
248
|
+
name: "previousOwner",
|
|
249
|
+
type: "address",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
indexed: true,
|
|
253
|
+
internalType: "address",
|
|
254
|
+
name: "newOwner",
|
|
255
|
+
type: "address",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
name: "OwnershipTransferred",
|
|
259
|
+
type: "event",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
anonymous: false,
|
|
263
|
+
inputs: [
|
|
264
|
+
{
|
|
265
|
+
indexed: false,
|
|
266
|
+
internalType: "bool",
|
|
267
|
+
name: "isPaused",
|
|
268
|
+
type: "bool",
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
name: "Paused",
|
|
272
|
+
type: "event",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
anonymous: false,
|
|
276
|
+
inputs: [
|
|
277
|
+
{
|
|
278
|
+
indexed: true,
|
|
279
|
+
internalType: "address",
|
|
280
|
+
name: "user",
|
|
281
|
+
type: "address",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
indexed: false,
|
|
285
|
+
internalType: "uint256",
|
|
286
|
+
name: "pointsRequested",
|
|
287
|
+
type: "uint256",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
indexed: false,
|
|
291
|
+
internalType: "uint256",
|
|
292
|
+
name: "pointsReceived",
|
|
293
|
+
type: "uint256",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
indexed: false,
|
|
297
|
+
internalType: "uint256",
|
|
298
|
+
name: "payout",
|
|
299
|
+
type: "uint256",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
indexed: false,
|
|
303
|
+
internalType: "bool",
|
|
304
|
+
name: "pushed",
|
|
305
|
+
type: "bool",
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
name: "Redeemed",
|
|
309
|
+
type: "event",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
anonymous: false,
|
|
313
|
+
inputs: [
|
|
314
|
+
{
|
|
315
|
+
indexed: true,
|
|
316
|
+
internalType: "address",
|
|
317
|
+
name: "user",
|
|
318
|
+
type: "address",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
indexed: false,
|
|
322
|
+
internalType: "uint256",
|
|
323
|
+
name: "amount",
|
|
324
|
+
type: "uint256",
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
name: "Withdrawal",
|
|
328
|
+
type: "event",
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
inputs: [],
|
|
332
|
+
name: "END_BLOCK",
|
|
333
|
+
outputs: [
|
|
334
|
+
{
|
|
335
|
+
internalType: "uint256",
|
|
336
|
+
name: "",
|
|
337
|
+
type: "uint256",
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
stateMutability: "view",
|
|
341
|
+
type: "function",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
inputs: [],
|
|
345
|
+
name: "POINTS_TOKEN",
|
|
346
|
+
outputs: [
|
|
347
|
+
{
|
|
348
|
+
internalType: "contract IERC20",
|
|
349
|
+
name: "",
|
|
350
|
+
type: "address",
|
|
351
|
+
},
|
|
352
|
+
],
|
|
353
|
+
stateMutability: "view",
|
|
354
|
+
type: "function",
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
inputs: [],
|
|
358
|
+
name: "START_BLOCK",
|
|
359
|
+
outputs: [
|
|
360
|
+
{
|
|
361
|
+
internalType: "uint256",
|
|
362
|
+
name: "",
|
|
363
|
+
type: "uint256",
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
stateMutability: "view",
|
|
367
|
+
type: "function",
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
inputs: [],
|
|
371
|
+
name: "accPayoutPerPoint",
|
|
372
|
+
outputs: [
|
|
373
|
+
{
|
|
374
|
+
internalType: "uint256",
|
|
375
|
+
name: "",
|
|
376
|
+
type: "uint256",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
stateMutability: "view",
|
|
380
|
+
type: "function",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
inputs: [],
|
|
384
|
+
name: "finalize",
|
|
385
|
+
outputs: [],
|
|
386
|
+
stateMutability: "nonpayable",
|
|
387
|
+
type: "function",
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
inputs: [],
|
|
391
|
+
name: "finalized",
|
|
392
|
+
outputs: [
|
|
393
|
+
{
|
|
394
|
+
internalType: "bool",
|
|
395
|
+
name: "",
|
|
396
|
+
type: "bool",
|
|
397
|
+
},
|
|
398
|
+
],
|
|
399
|
+
stateMutability: "view",
|
|
400
|
+
type: "function",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
inputs: [],
|
|
404
|
+
name: "fundEth",
|
|
405
|
+
outputs: [],
|
|
406
|
+
stateMutability: "payable",
|
|
407
|
+
type: "function",
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
inputs: [],
|
|
411
|
+
name: "isRedemptionOpen",
|
|
412
|
+
outputs: [
|
|
413
|
+
{
|
|
414
|
+
internalType: "bool",
|
|
415
|
+
name: "",
|
|
416
|
+
type: "bool",
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
stateMutability: "view",
|
|
420
|
+
type: "function",
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
inputs: [],
|
|
424
|
+
name: "moveBalanceToPool",
|
|
425
|
+
outputs: [],
|
|
426
|
+
stateMutability: "nonpayable",
|
|
427
|
+
type: "function",
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
inputs: [],
|
|
431
|
+
name: "owner",
|
|
432
|
+
outputs: [
|
|
433
|
+
{
|
|
434
|
+
internalType: "address",
|
|
435
|
+
name: "",
|
|
436
|
+
type: "address",
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
stateMutability: "view",
|
|
440
|
+
type: "function",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
inputs: [],
|
|
444
|
+
name: "paused",
|
|
445
|
+
outputs: [
|
|
446
|
+
{
|
|
447
|
+
internalType: "bool",
|
|
448
|
+
name: "",
|
|
449
|
+
type: "bool",
|
|
450
|
+
},
|
|
451
|
+
],
|
|
452
|
+
stateMutability: "view",
|
|
453
|
+
type: "function",
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
inputs: [],
|
|
457
|
+
name: "pendingTotal",
|
|
458
|
+
outputs: [
|
|
459
|
+
{
|
|
460
|
+
internalType: "uint256",
|
|
461
|
+
name: "",
|
|
462
|
+
type: "uint256",
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
stateMutability: "view",
|
|
466
|
+
type: "function",
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
inputs: [
|
|
470
|
+
{
|
|
471
|
+
internalType: "address",
|
|
472
|
+
name: "",
|
|
473
|
+
type: "address",
|
|
474
|
+
},
|
|
475
|
+
],
|
|
476
|
+
name: "pendingWithdrawals",
|
|
477
|
+
outputs: [
|
|
478
|
+
{
|
|
479
|
+
internalType: "uint256",
|
|
480
|
+
name: "",
|
|
481
|
+
type: "uint256",
|
|
482
|
+
},
|
|
483
|
+
],
|
|
484
|
+
stateMutability: "view",
|
|
485
|
+
type: "function",
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
inputs: [
|
|
489
|
+
{
|
|
490
|
+
internalType: "uint256",
|
|
491
|
+
name: "amount",
|
|
492
|
+
type: "uint256",
|
|
493
|
+
},
|
|
494
|
+
],
|
|
495
|
+
name: "previewPayout",
|
|
496
|
+
outputs: [
|
|
497
|
+
{
|
|
498
|
+
internalType: "uint256",
|
|
499
|
+
name: "",
|
|
500
|
+
type: "uint256",
|
|
501
|
+
},
|
|
502
|
+
],
|
|
503
|
+
stateMutability: "view",
|
|
504
|
+
type: "function",
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
inputs: [
|
|
508
|
+
{
|
|
509
|
+
internalType: "uint256",
|
|
510
|
+
name: "amount",
|
|
511
|
+
type: "uint256",
|
|
512
|
+
},
|
|
513
|
+
],
|
|
514
|
+
name: "redeemPull",
|
|
515
|
+
outputs: [],
|
|
516
|
+
stateMutability: "nonpayable",
|
|
517
|
+
type: "function",
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
inputs: [
|
|
521
|
+
{
|
|
522
|
+
internalType: "uint256",
|
|
523
|
+
name: "amount",
|
|
524
|
+
type: "uint256",
|
|
525
|
+
},
|
|
526
|
+
],
|
|
527
|
+
name: "redeemPush",
|
|
528
|
+
outputs: [],
|
|
529
|
+
stateMutability: "nonpayable",
|
|
530
|
+
type: "function",
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
inputs: [],
|
|
534
|
+
name: "remainingReserve",
|
|
535
|
+
outputs: [
|
|
536
|
+
{
|
|
537
|
+
internalType: "uint256",
|
|
538
|
+
name: "",
|
|
539
|
+
type: "uint256",
|
|
540
|
+
},
|
|
541
|
+
],
|
|
542
|
+
stateMutability: "view",
|
|
543
|
+
type: "function",
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
inputs: [
|
|
547
|
+
{
|
|
548
|
+
internalType: "address",
|
|
549
|
+
name: "to",
|
|
550
|
+
type: "address",
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
internalType: "uint256",
|
|
554
|
+
name: "amount",
|
|
555
|
+
type: "uint256",
|
|
556
|
+
},
|
|
557
|
+
],
|
|
558
|
+
name: "rescueEth",
|
|
559
|
+
outputs: [],
|
|
560
|
+
stateMutability: "nonpayable",
|
|
561
|
+
type: "function",
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
inputs: [
|
|
565
|
+
{
|
|
566
|
+
internalType: "address",
|
|
567
|
+
name: "tokenAddr",
|
|
568
|
+
type: "address",
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
internalType: "address",
|
|
572
|
+
name: "to",
|
|
573
|
+
type: "address",
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
internalType: "uint256",
|
|
577
|
+
name: "amount",
|
|
578
|
+
type: "uint256",
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
name: "rescueTokens",
|
|
582
|
+
outputs: [],
|
|
583
|
+
stateMutability: "nonpayable",
|
|
584
|
+
type: "function",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
inputs: [
|
|
588
|
+
{
|
|
589
|
+
internalType: "bool",
|
|
590
|
+
name: "_paused",
|
|
591
|
+
type: "bool",
|
|
592
|
+
},
|
|
593
|
+
],
|
|
594
|
+
name: "setPaused",
|
|
595
|
+
outputs: [],
|
|
596
|
+
stateMutability: "nonpayable",
|
|
597
|
+
type: "function",
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
inputs: [],
|
|
601
|
+
name: "totalPayoutPool",
|
|
602
|
+
outputs: [
|
|
603
|
+
{
|
|
604
|
+
internalType: "uint256",
|
|
605
|
+
name: "",
|
|
606
|
+
type: "uint256",
|
|
607
|
+
},
|
|
608
|
+
],
|
|
609
|
+
stateMutability: "view",
|
|
610
|
+
type: "function",
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
inputs: [],
|
|
614
|
+
name: "totalPayoutSent",
|
|
615
|
+
outputs: [
|
|
616
|
+
{
|
|
617
|
+
internalType: "uint256",
|
|
618
|
+
name: "",
|
|
619
|
+
type: "uint256",
|
|
620
|
+
},
|
|
621
|
+
],
|
|
622
|
+
stateMutability: "view",
|
|
623
|
+
type: "function",
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
inputs: [],
|
|
627
|
+
name: "totalPointsRedeemed",
|
|
628
|
+
outputs: [
|
|
629
|
+
{
|
|
630
|
+
internalType: "uint256",
|
|
631
|
+
name: "",
|
|
632
|
+
type: "uint256",
|
|
633
|
+
},
|
|
634
|
+
],
|
|
635
|
+
stateMutability: "view",
|
|
636
|
+
type: "function",
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
inputs: [],
|
|
640
|
+
name: "totalRedeemablePoints",
|
|
641
|
+
outputs: [
|
|
642
|
+
{
|
|
643
|
+
internalType: "uint256",
|
|
644
|
+
name: "",
|
|
645
|
+
type: "uint256",
|
|
646
|
+
},
|
|
647
|
+
],
|
|
648
|
+
stateMutability: "view",
|
|
649
|
+
type: "function",
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
inputs: [
|
|
653
|
+
{
|
|
654
|
+
internalType: "address",
|
|
655
|
+
name: "newOwner",
|
|
656
|
+
type: "address",
|
|
657
|
+
},
|
|
658
|
+
],
|
|
659
|
+
name: "transferOwnership",
|
|
660
|
+
outputs: [],
|
|
661
|
+
stateMutability: "nonpayable",
|
|
662
|
+
type: "function",
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
inputs: [],
|
|
666
|
+
name: "withdraw",
|
|
667
|
+
outputs: [],
|
|
668
|
+
stateMutability: "nonpayable",
|
|
669
|
+
type: "function",
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
inputs: [],
|
|
673
|
+
name: "withdrawDust",
|
|
674
|
+
outputs: [],
|
|
675
|
+
stateMutability: "nonpayable",
|
|
676
|
+
type: "function",
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
stateMutability: "payable",
|
|
680
|
+
type: "receive",
|
|
681
|
+
},
|
|
682
|
+
] as const;
|
|
683
|
+
|
|
684
|
+
const _bytecode =
|
|
685
|
+
"0x60e060405260016000553480156200001657600080fd5b506040516200270a3803806200270a8339810160408190526200003991620000fd565b6001600160a01b0384166200006157604051635d1a467d60e11b815260040160405180910390fd5b6001600160a01b0383166200008957604051630962257960e11b815260040160405180910390fd5b818111620000aa576040516312a4320b60e21b815260040160405180910390fd5b6001600160a01b03938416608052600180546001600160a01b031916939094169290921790925560a09190915260c05262000145565b80516001600160a01b0381168114620000f857600080fd5b919050565b600080600080608085870312156200011457600080fd5b6200011f85620000e0565b93506200012f60208601620000e0565b6040860151606090960151949790965092505050565b60805160a05160c051612548620001c26000396000818161042f01528181610d0e01528181611127015281816113440152818161153901526118dc01526000818161024101528181610ce201526118b301526000818161049801528181610ae101528181611a2901528181611ac50152611b1e01526125486000f3fe6080604052600436106101b05760003560e01c8063af131a5f116100ec578063cfb550f11161008a578063e807a09611610064578063e807a096146104da578063f2fde38b146104f0578063f3f4370314610510578063fa690beb1461053d57600080fd5b8063cfb550f114610471578063d5c6bce414610486578063d7cc3d35146104ba57600080fd5b8063c5adf210116100c6578063c5adf210146103e7578063cc153dba14610407578063cd3ec1d61461041d578063cea9d26f1461045157600080fd5b8063af131a5f14610389578063b3f05b971461039f578063c04a4c18146103d157600080fd5b80634bb278f31161015957806381d7cd6b1161013357806381d7cd6b146102fa5780638be9bd191461031a5780638da5cb5b14610322578063a060ae181461037457600080fd5b80634bb278f31461028d5780634c7b53ea146102a25780635c975abb146102c757600080fd5b806339b3e8261161018a57806339b3e8261461022f5780633ccfd60b1461026357806342e8c2201461027857600080fd5b80630f932cf5146101c657806316c38b3c146101e657806336a1b5a01461020657600080fd5b366101c157346000036101bf57005b005b600080fd5b3480156101d257600080fd5b506101bf6101e13660046122f9565b610553565b3480156101f257600080fd5b506101bf610201366004612323565b61066c565b34801561021257600080fd5b5061021c60085481565b6040519081526020015b60405180910390f35b34801561023b57600080fd5b5061021c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561026f57600080fd5b506101bf610742565b34801561028457600080fd5b506101bf6108e5565b34801561029957600080fd5b506101bf610a32565b3480156102ae57600080fd5b506102b7610c90565b6040519015158152602001610226565b3480156102d357600080fd5b506001546102b7907501000000000000000000000000000000000000000000900460ff1681565b34801561030657600080fd5b506101bf6103153660046122f9565b610d36565b6101bf610ec9565b34801561032e57600080fd5b5060015461034f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610226565b34801561038057600080fd5b5061021c610fa2565b34801561039557600080fd5b5061021c60025481565b3480156103ab57600080fd5b506001546102b79074010000000000000000000000000000000000000000900460ff1681565b3480156103dd57600080fd5b5061021c60045481565b3480156103f357600080fd5b5061021c6104023660046122f9565b610fee565b34801561041357600080fd5b5061021c60065481565b34801561042957600080fd5b5061021c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561045d57600080fd5b506101bf61046c366004612369565b6110af565b34801561047d57600080fd5b506101bf61122c565b34801561049257600080fd5b5061034f7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104c657600080fd5b506101bf6104d53660046123a5565b6114c1565b3480156104e657600080fd5b5061021c60035481565b3480156104fc57600080fd5b506101bf61050b3660046123cf565b6116ec565b34801561051c57600080fd5b5061021c61052b3660046123cf565b60076020526000908152604090205481565b34801561054957600080fd5b5061021c60055481565b6002600054036105c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f5245454e5452414e43590000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b60026000908155806105d63384611801565b336000908152600760205260408120805493955091935084926105fa908490612419565b9250508190555081600860008282546106139190612419565b909155505060408051848152602081018390529081018390526000606082015233907f81ff784935ffa11d6a1785237495788f94842be763045286ed403b1f2e619d189060800160405180910390a25050600160005550565b60015473ffffffffffffffffffffffffffffffffffffffff1633146106bd576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180548215157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff9091161790556040517f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd29061073790831515815260200190565b60405180910390a150565b6002600054036107ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f5245454e5452414e43590000000000000000000000000000000000000000000060448201526064016105bb565b6002600090815533815260076020526040812054908190036107fc576040517fd0d04f6000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600090815260076020526040812081905560088054839290610820908490612432565b9091555050604051600090339083908381818185875af1925050503d8060008114610867576040519150601f19603f3d011682016040523d82523d6000602084013e61086c565b606091505b50509050806108a7576040517f6d963f8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60405182815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250506001600055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610936576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015474010000000000000000000000000000000000000000900460ff161561098b576040517f475a253500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b4760008190036109c7576040517fbcbdd43000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025480821115610a2e5760006109de8284612432565b905080600260008282546109f29190612419565b909155505060405181815233907f5af8184bef8e4b45eb9f6ed7734d04da38ced226495548f46e0c8ff8d7d9a5249060200160405180910390a2505b5050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610a83576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015474010000000000000000000000000000000000000000900460ff1615610ad8576040517f475a253500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600047905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6e9190612445565b905081600003610baa576040517fbcbdd43000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600003610be4576040517f9fbba64f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610bf983670de0b6b3a764000084611d19565b600284905560038390556004819055600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905560408051858152602081018590529081018290529091507f069cb9cf3066619f9a83be465993a22843ea7baba731ac97ac208899985dc0079060600160405180910390a1505050565b60015460009074010000000000000000000000000000000000000000900460ff168015610cd957506001547501000000000000000000000000000000000000000000900460ff16155b8015610d0557507f00000000000000000000000000000000000000000000000000000000000000004310155b8015610d3157507f00000000000000000000000000000000000000000000000000000000000000004311155b905090565b600260005403610da2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f5245454e5452414e43590000000000000000000000000000000000000000000060448201526064016105bb565b6002600055333b15610de0576040517f7f98fb9800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ded3384611801565b6040519193509150600090339084908381818185875af1925050503d8060008114610e34576040519150601f19603f3d011682016040523d82523d6000602084013e610e39565b606091505b5050905080610e74576040517f6d963f8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051858152602081018490529081018490526001606082015233907f81ff784935ffa11d6a1785237495788f94842be763045286ed403b1f2e619d189060800160405180910390a2505060016000555050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610f1a576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b34600003610f54576040517fcbca5aa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460026000828254610f669190612419565b909155505060405134815233907f5af8184bef8e4b45eb9f6ed7734d04da38ced226495548f46e0c8ff8d7d9a5249060200160405180910390a2565b60015460009074010000000000000000000000000000000000000000900460ff16610fcd5750600090565b60025460065410610fde5750600090565b600654600254610d319190612432565b60015460009074010000000000000000000000000000000000000000900460ff161580611019575081155b1561102657506000919050565b600354600081900361103b5750600092915050565b60055481811061104f575060009392505050565b600061105b8284612432565b90508085111561107057506000949350505050565b600061108786600454670de0b6b3a7640000611d19565b90506000611093610fa2565b90508082116110a257816110a4565b805b979650505050505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611100576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015474010000000000000000000000000000000000000000900460ff16801561114957507f000000000000000000000000000000000000000000000000000000000000000043115b61117f576040517f0d83425d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166111cc576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600003611206576040517fcbca5aa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61122773ffffffffffffffffffffffffffffffffffffffff84168383611e49565b505050565b60015473ffffffffffffffffffffffffffffffffffffffff16331461127d576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600054036112e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f5245454e5452414e43590000000000000000000000000000000000000000000060448201526064016105bb565b600260005560015474010000000000000000000000000000000000000000900460ff16611342576040517f1bee0d5a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000431161139b576040517fd9047a8200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600854478181116113d8576040517fc4a0580100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006113e48383612432565b60015460405191925060009173ffffffffffffffffffffffffffffffffffffffff9091169083908381818185875af1925050503d8060008114611443576040519150601f19603f3d011682016040523d82523d6000602084013e611448565b606091505b5050905080611483576040517f6d963f8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518281527f9a580586fe75f8220b617bb8346323412f77ff8597d24929c24e516a692861319060200160405180910390a1505060016000555050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611512576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015474010000000000000000000000000000000000000000900460ff16801561155b57507f000000000000000000000000000000000000000000000000000000000000000043115b611591576040517f0d83425d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166115de576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600003611618576040517fcbca5aa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b47811115611652576040517fb6d6e7d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146116ac576040519150601f19603f3d011682016040523d82523d6000602084013e6116b1565b606091505b5050905080611227576040517f6d963f8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015473ffffffffffffffffffffffffffffffffffffffff16331461173d576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff811661178a576040517f12c44af200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600154600090819074010000000000000000000000000000000000000000900460ff1661185a576040517f1bee0d5a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001547501000000000000000000000000000000000000000000900460ff16156118b0576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b437f00000000000000000000000000000000000000000000000000000000000000008110806118fe57507f000000000000000000000000000000000000000000000000000000000000000081115b15611935576040517fddb171fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8360000361196f576040517fcbca5aa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60035460055460008290036119b0576040517fa19ce6cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006119bc8284612432565b9050806000036119f8576040517fd897006200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015611a85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa99190612445565b9050611aed73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168a308b611f1d565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015611b7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9e9190612445565b9050611baa8282612432565b965086600003611be6576040517fda4b29aa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b88871115611c20576040517f12d9331800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82871115611c5a576040517f4c25af3e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c6f87600454670de0b6b3a7640000611d19565b97506000611c7b611f81565b905080891115611c89578098505b88600003611cc3576040517fda4b29aa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b47891115611cfd576040517fb6d6e7d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505083016005555050600680548301905590939092509050565b600080807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85870985870292508281108382030391505080600003611d7157838281611d6757611d6761245e565b0492505050611e42565b808411611dda576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d6174683a206d756c446976206f766572666c6f77000000000000000000000060448201526064016105bb565b600084868809851960019081018716968790049682860381900495909211909303600082900391909104909201919091029190911760038402600290811880860282030280860282030280860282030280860282030280860282030280860290910302029150505b9392505050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526112279084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611feb565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052611f7b9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611e9b565b50505050565b60015460009074010000000000000000000000000000000000000000900460ff16611fac5750600090565b60006002546006541015611fcf57600654600254611fca9190612432565b611fd2565b60005b905047808211611fe25781611fe4565b805b9250505090565b600061204d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166120fa9092919063ffffffff16565b905080516000148061206e57508080602001905181019061206e919061248d565b611227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105bb565b60606121098484600085612111565b949350505050565b6060824710156121a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105bb565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516121cc91906124ce565b60006040518083038185875af1925050503d8060008114612209576040519150601f19603f3d011682016040523d82523d6000602084013e61220e565b606091505b50915091506110a487838387606083156122b05782516000036122a95773ffffffffffffffffffffffffffffffffffffffff85163b6122a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105bb565b5081612109565b61210983838151156122c55781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105bb91906124ea565b60006020828403121561230b57600080fd5b5035919050565b801515811461232057600080fd5b50565b60006020828403121561233557600080fd5b8135611e4281612312565b803573ffffffffffffffffffffffffffffffffffffffff8116811461236457600080fd5b919050565b60008060006060848603121561237e57600080fd5b61238784612340565b925061239560208501612340565b9150604084013590509250925092565b600080604083850312156123b857600080fd5b6123c183612340565b946020939093013593505050565b6000602082840312156123e157600080fd5b611e4282612340565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561242c5761242c6123ea565b92915050565b8181038181111561242c5761242c6123ea565b60006020828403121561245757600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006020828403121561249f57600080fd5b8151611e4281612312565b60005b838110156124c55781810151838201526020016124ad565b50506000910152565b600082516124e08184602087016124aa565b9190910192915050565b60208152600082518060208401526125098160408501602087016124aa565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea164736f6c6343000814000a";
|
|
686
|
+
|
|
687
|
+
type FixedRatioCoinDisperserConstructorParams =
|
|
688
|
+
| [signer?: Signer]
|
|
689
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
690
|
+
|
|
691
|
+
const isSuperArgs = (
|
|
692
|
+
xs: FixedRatioCoinDisperserConstructorParams
|
|
693
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
694
|
+
|
|
695
|
+
export class FixedRatioCoinDisperser__factory extends ContractFactory {
|
|
696
|
+
constructor(...args: FixedRatioCoinDisperserConstructorParams) {
|
|
697
|
+
if (isSuperArgs(args)) {
|
|
698
|
+
super(...args);
|
|
699
|
+
} else {
|
|
700
|
+
super(_abi, _bytecode, args[0]);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
override getDeployTransaction(
|
|
705
|
+
_pointsToken: AddressLike,
|
|
706
|
+
_owner: AddressLike,
|
|
707
|
+
_startBlock: BigNumberish,
|
|
708
|
+
_endBlock: BigNumberish,
|
|
709
|
+
overrides?: NonPayableOverrides & { from?: string }
|
|
710
|
+
): Promise<ContractDeployTransaction> {
|
|
711
|
+
return super.getDeployTransaction(
|
|
712
|
+
_pointsToken,
|
|
713
|
+
_owner,
|
|
714
|
+
_startBlock,
|
|
715
|
+
_endBlock,
|
|
716
|
+
overrides || {}
|
|
717
|
+
);
|
|
718
|
+
}
|
|
719
|
+
override deploy(
|
|
720
|
+
_pointsToken: AddressLike,
|
|
721
|
+
_owner: AddressLike,
|
|
722
|
+
_startBlock: BigNumberish,
|
|
723
|
+
_endBlock: BigNumberish,
|
|
724
|
+
overrides?: NonPayableOverrides & { from?: string }
|
|
725
|
+
) {
|
|
726
|
+
return super.deploy(
|
|
727
|
+
_pointsToken,
|
|
728
|
+
_owner,
|
|
729
|
+
_startBlock,
|
|
730
|
+
_endBlock,
|
|
731
|
+
overrides || {}
|
|
732
|
+
) as Promise<
|
|
733
|
+
FixedRatioCoinDisperser & {
|
|
734
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
735
|
+
}
|
|
736
|
+
>;
|
|
737
|
+
}
|
|
738
|
+
override connect(
|
|
739
|
+
runner: ContractRunner | null
|
|
740
|
+
): FixedRatioCoinDisperser__factory {
|
|
741
|
+
return super.connect(runner) as FixedRatioCoinDisperser__factory;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
static readonly bytecode = _bytecode;
|
|
745
|
+
static readonly abi = _abi;
|
|
746
|
+
static createInterface(): FixedRatioCoinDisperserInterface {
|
|
747
|
+
return new Interface(_abi) as FixedRatioCoinDisperserInterface;
|
|
748
|
+
}
|
|
749
|
+
static connect(
|
|
750
|
+
address: string,
|
|
751
|
+
runner?: ContractRunner | null
|
|
752
|
+
): FixedRatioCoinDisperser {
|
|
753
|
+
return new Contract(
|
|
754
|
+
address,
|
|
755
|
+
_abi,
|
|
756
|
+
runner
|
|
757
|
+
) as unknown as FixedRatioCoinDisperser;
|
|
758
|
+
}
|
|
759
|
+
}
|