@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/mocks/utils/mpc/PrivacyImplementationV2__factory.ts
ADDED
|
@@ -0,0 +1,648 @@
|
|
|
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 { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
11
|
+
import type { NonPayableOverrides } from "../../../../../common";
|
|
12
|
+
import type {
|
|
13
|
+
PrivacyImplementationV2,
|
|
14
|
+
PrivacyImplementationV2Interface,
|
|
15
|
+
} from "../../../../../contracts/mocks/utils/mpc/PrivacyImplementationV2";
|
|
16
|
+
|
|
17
|
+
const _abi = [
|
|
18
|
+
{
|
|
19
|
+
anonymous: false,
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
indexed: true,
|
|
23
|
+
internalType: "address",
|
|
24
|
+
name: "user",
|
|
25
|
+
type: "address",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
indexed: false,
|
|
29
|
+
internalType: "string",
|
|
30
|
+
name: "operation",
|
|
31
|
+
type: "string",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
name: "OperationPerformed",
|
|
35
|
+
type: "event",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
anonymous: false,
|
|
39
|
+
inputs: [
|
|
40
|
+
{
|
|
41
|
+
indexed: true,
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "user",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
name: "ValueStored128",
|
|
48
|
+
type: "event",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
anonymous: false,
|
|
52
|
+
inputs: [
|
|
53
|
+
{
|
|
54
|
+
indexed: true,
|
|
55
|
+
internalType: "address",
|
|
56
|
+
name: "user",
|
|
57
|
+
type: "address",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
name: "ValueStored256",
|
|
61
|
+
type: "event",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
inputs: [
|
|
65
|
+
{
|
|
66
|
+
components: [
|
|
67
|
+
{
|
|
68
|
+
internalType: "ctUint128",
|
|
69
|
+
name: "ciphertext",
|
|
70
|
+
type: "uint256",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
internalType: "bytes",
|
|
74
|
+
name: "signature",
|
|
75
|
+
type: "bytes",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
internalType: "struct itUint128",
|
|
79
|
+
name: "a",
|
|
80
|
+
type: "tuple",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
components: [
|
|
84
|
+
{
|
|
85
|
+
internalType: "ctUint128",
|
|
86
|
+
name: "ciphertext",
|
|
87
|
+
type: "uint256",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
internalType: "bytes",
|
|
91
|
+
name: "signature",
|
|
92
|
+
type: "bytes",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
internalType: "struct itUint128",
|
|
96
|
+
name: "b",
|
|
97
|
+
type: "tuple",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
name: "add128",
|
|
101
|
+
outputs: [
|
|
102
|
+
{
|
|
103
|
+
internalType: "ctUint128",
|
|
104
|
+
name: "",
|
|
105
|
+
type: "uint256",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
stateMutability: "nonpayable",
|
|
109
|
+
type: "function",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
inputs: [
|
|
113
|
+
{
|
|
114
|
+
components: [
|
|
115
|
+
{
|
|
116
|
+
components: [
|
|
117
|
+
{
|
|
118
|
+
internalType: "ctUint128",
|
|
119
|
+
name: "ciphertextHigh",
|
|
120
|
+
type: "uint256",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
internalType: "ctUint128",
|
|
124
|
+
name: "ciphertextLow",
|
|
125
|
+
type: "uint256",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
internalType: "struct ctUint256",
|
|
129
|
+
name: "ciphertext",
|
|
130
|
+
type: "tuple",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
internalType: "bytes",
|
|
134
|
+
name: "signature",
|
|
135
|
+
type: "bytes",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
internalType: "struct itUint256",
|
|
139
|
+
name: "a",
|
|
140
|
+
type: "tuple",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
components: [
|
|
144
|
+
{
|
|
145
|
+
components: [
|
|
146
|
+
{
|
|
147
|
+
internalType: "ctUint128",
|
|
148
|
+
name: "ciphertextHigh",
|
|
149
|
+
type: "uint256",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
internalType: "ctUint128",
|
|
153
|
+
name: "ciphertextLow",
|
|
154
|
+
type: "uint256",
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
internalType: "struct ctUint256",
|
|
158
|
+
name: "ciphertext",
|
|
159
|
+
type: "tuple",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
internalType: "bytes",
|
|
163
|
+
name: "signature",
|
|
164
|
+
type: "bytes",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
internalType: "struct itUint256",
|
|
168
|
+
name: "b",
|
|
169
|
+
type: "tuple",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
name: "add256",
|
|
173
|
+
outputs: [
|
|
174
|
+
{
|
|
175
|
+
components: [
|
|
176
|
+
{
|
|
177
|
+
internalType: "ctUint128",
|
|
178
|
+
name: "ciphertextHigh",
|
|
179
|
+
type: "uint256",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
internalType: "ctUint128",
|
|
183
|
+
name: "ciphertextLow",
|
|
184
|
+
type: "uint256",
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
internalType: "struct ctUint256",
|
|
188
|
+
name: "",
|
|
189
|
+
type: "tuple",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
stateMutability: "nonpayable",
|
|
193
|
+
type: "function",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
inputs: [
|
|
197
|
+
{
|
|
198
|
+
components: [
|
|
199
|
+
{
|
|
200
|
+
internalType: "ctUint128",
|
|
201
|
+
name: "ciphertext",
|
|
202
|
+
type: "uint256",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
internalType: "bytes",
|
|
206
|
+
name: "signature",
|
|
207
|
+
type: "bytes",
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
internalType: "struct itUint128",
|
|
211
|
+
name: "amount",
|
|
212
|
+
type: "tuple",
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
name: "addToBalance128",
|
|
216
|
+
outputs: [
|
|
217
|
+
{
|
|
218
|
+
internalType: "ctUint128",
|
|
219
|
+
name: "",
|
|
220
|
+
type: "uint256",
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
stateMutability: "nonpayable",
|
|
224
|
+
type: "function",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
inputs: [
|
|
228
|
+
{
|
|
229
|
+
components: [
|
|
230
|
+
{
|
|
231
|
+
components: [
|
|
232
|
+
{
|
|
233
|
+
internalType: "ctUint128",
|
|
234
|
+
name: "ciphertextHigh",
|
|
235
|
+
type: "uint256",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
internalType: "ctUint128",
|
|
239
|
+
name: "ciphertextLow",
|
|
240
|
+
type: "uint256",
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
internalType: "struct ctUint256",
|
|
244
|
+
name: "ciphertext",
|
|
245
|
+
type: "tuple",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
internalType: "bytes",
|
|
249
|
+
name: "signature",
|
|
250
|
+
type: "bytes",
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
internalType: "struct itUint256",
|
|
254
|
+
name: "amount",
|
|
255
|
+
type: "tuple",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
name: "addToBalance256",
|
|
259
|
+
outputs: [
|
|
260
|
+
{
|
|
261
|
+
components: [
|
|
262
|
+
{
|
|
263
|
+
internalType: "ctUint128",
|
|
264
|
+
name: "ciphertextHigh",
|
|
265
|
+
type: "uint256",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
internalType: "ctUint128",
|
|
269
|
+
name: "ciphertextLow",
|
|
270
|
+
type: "uint256",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
internalType: "struct ctUint256",
|
|
274
|
+
name: "",
|
|
275
|
+
type: "tuple",
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
stateMutability: "nonpayable",
|
|
279
|
+
type: "function",
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
inputs: [
|
|
283
|
+
{
|
|
284
|
+
components: [
|
|
285
|
+
{
|
|
286
|
+
internalType: "ctUint128",
|
|
287
|
+
name: "ciphertext",
|
|
288
|
+
type: "uint256",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
internalType: "bytes",
|
|
292
|
+
name: "signature",
|
|
293
|
+
type: "bytes",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
internalType: "struct itUint128",
|
|
297
|
+
name: "a",
|
|
298
|
+
type: "tuple",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
components: [
|
|
302
|
+
{
|
|
303
|
+
internalType: "ctUint128",
|
|
304
|
+
name: "ciphertext",
|
|
305
|
+
type: "uint256",
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
internalType: "bytes",
|
|
309
|
+
name: "signature",
|
|
310
|
+
type: "bytes",
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
internalType: "struct itUint128",
|
|
314
|
+
name: "b",
|
|
315
|
+
type: "tuple",
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
name: "div128",
|
|
319
|
+
outputs: [
|
|
320
|
+
{
|
|
321
|
+
internalType: "ctUint128",
|
|
322
|
+
name: "",
|
|
323
|
+
type: "uint256",
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
stateMutability: "nonpayable",
|
|
327
|
+
type: "function",
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
inputs: [],
|
|
331
|
+
name: "getBalance128",
|
|
332
|
+
outputs: [
|
|
333
|
+
{
|
|
334
|
+
internalType: "ctUint128",
|
|
335
|
+
name: "",
|
|
336
|
+
type: "uint256",
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
stateMutability: "nonpayable",
|
|
340
|
+
type: "function",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
inputs: [],
|
|
344
|
+
name: "getBalance256",
|
|
345
|
+
outputs: [
|
|
346
|
+
{
|
|
347
|
+
components: [
|
|
348
|
+
{
|
|
349
|
+
internalType: "ctUint128",
|
|
350
|
+
name: "ciphertextHigh",
|
|
351
|
+
type: "uint256",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
internalType: "ctUint128",
|
|
355
|
+
name: "ciphertextLow",
|
|
356
|
+
type: "uint256",
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
internalType: "struct ctUint256",
|
|
360
|
+
name: "",
|
|
361
|
+
type: "tuple",
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
stateMutability: "nonpayable",
|
|
365
|
+
type: "function",
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
inputs: [
|
|
369
|
+
{
|
|
370
|
+
components: [
|
|
371
|
+
{
|
|
372
|
+
internalType: "ctUint128",
|
|
373
|
+
name: "ciphertext",
|
|
374
|
+
type: "uint256",
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
internalType: "bytes",
|
|
378
|
+
name: "signature",
|
|
379
|
+
type: "bytes",
|
|
380
|
+
},
|
|
381
|
+
],
|
|
382
|
+
internalType: "struct itUint128",
|
|
383
|
+
name: "a",
|
|
384
|
+
type: "tuple",
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
components: [
|
|
388
|
+
{
|
|
389
|
+
internalType: "ctUint128",
|
|
390
|
+
name: "ciphertext",
|
|
391
|
+
type: "uint256",
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
internalType: "bytes",
|
|
395
|
+
name: "signature",
|
|
396
|
+
type: "bytes",
|
|
397
|
+
},
|
|
398
|
+
],
|
|
399
|
+
internalType: "struct itUint128",
|
|
400
|
+
name: "b",
|
|
401
|
+
type: "tuple",
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
name: "mul128",
|
|
405
|
+
outputs: [
|
|
406
|
+
{
|
|
407
|
+
internalType: "ctUint128",
|
|
408
|
+
name: "",
|
|
409
|
+
type: "uint256",
|
|
410
|
+
},
|
|
411
|
+
],
|
|
412
|
+
stateMutability: "nonpayable",
|
|
413
|
+
type: "function",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
inputs: [
|
|
417
|
+
{
|
|
418
|
+
components: [
|
|
419
|
+
{
|
|
420
|
+
internalType: "ctUint128",
|
|
421
|
+
name: "ciphertext",
|
|
422
|
+
type: "uint256",
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
internalType: "bytes",
|
|
426
|
+
name: "signature",
|
|
427
|
+
type: "bytes",
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
internalType: "struct itUint128",
|
|
431
|
+
name: "value",
|
|
432
|
+
type: "tuple",
|
|
433
|
+
},
|
|
434
|
+
],
|
|
435
|
+
name: "storeValue128",
|
|
436
|
+
outputs: [
|
|
437
|
+
{
|
|
438
|
+
internalType: "ctUint128",
|
|
439
|
+
name: "",
|
|
440
|
+
type: "uint256",
|
|
441
|
+
},
|
|
442
|
+
],
|
|
443
|
+
stateMutability: "nonpayable",
|
|
444
|
+
type: "function",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
inputs: [
|
|
448
|
+
{
|
|
449
|
+
components: [
|
|
450
|
+
{
|
|
451
|
+
components: [
|
|
452
|
+
{
|
|
453
|
+
internalType: "ctUint128",
|
|
454
|
+
name: "ciphertextHigh",
|
|
455
|
+
type: "uint256",
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
internalType: "ctUint128",
|
|
459
|
+
name: "ciphertextLow",
|
|
460
|
+
type: "uint256",
|
|
461
|
+
},
|
|
462
|
+
],
|
|
463
|
+
internalType: "struct ctUint256",
|
|
464
|
+
name: "ciphertext",
|
|
465
|
+
type: "tuple",
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
internalType: "bytes",
|
|
469
|
+
name: "signature",
|
|
470
|
+
type: "bytes",
|
|
471
|
+
},
|
|
472
|
+
],
|
|
473
|
+
internalType: "struct itUint256",
|
|
474
|
+
name: "value",
|
|
475
|
+
type: "tuple",
|
|
476
|
+
},
|
|
477
|
+
],
|
|
478
|
+
name: "storeValue256",
|
|
479
|
+
outputs: [
|
|
480
|
+
{
|
|
481
|
+
components: [
|
|
482
|
+
{
|
|
483
|
+
internalType: "ctUint128",
|
|
484
|
+
name: "ciphertextHigh",
|
|
485
|
+
type: "uint256",
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
internalType: "ctUint128",
|
|
489
|
+
name: "ciphertextLow",
|
|
490
|
+
type: "uint256",
|
|
491
|
+
},
|
|
492
|
+
],
|
|
493
|
+
internalType: "struct ctUint256",
|
|
494
|
+
name: "",
|
|
495
|
+
type: "tuple",
|
|
496
|
+
},
|
|
497
|
+
],
|
|
498
|
+
stateMutability: "nonpayable",
|
|
499
|
+
type: "function",
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
inputs: [
|
|
503
|
+
{
|
|
504
|
+
components: [
|
|
505
|
+
{
|
|
506
|
+
internalType: "ctUint128",
|
|
507
|
+
name: "ciphertext",
|
|
508
|
+
type: "uint256",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
internalType: "bytes",
|
|
512
|
+
name: "signature",
|
|
513
|
+
type: "bytes",
|
|
514
|
+
},
|
|
515
|
+
],
|
|
516
|
+
internalType: "struct itUint128",
|
|
517
|
+
name: "a",
|
|
518
|
+
type: "tuple",
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
components: [
|
|
522
|
+
{
|
|
523
|
+
internalType: "ctUint128",
|
|
524
|
+
name: "ciphertext",
|
|
525
|
+
type: "uint256",
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
internalType: "bytes",
|
|
529
|
+
name: "signature",
|
|
530
|
+
type: "bytes",
|
|
531
|
+
},
|
|
532
|
+
],
|
|
533
|
+
internalType: "struct itUint128",
|
|
534
|
+
name: "b",
|
|
535
|
+
type: "tuple",
|
|
536
|
+
},
|
|
537
|
+
],
|
|
538
|
+
name: "sub128",
|
|
539
|
+
outputs: [
|
|
540
|
+
{
|
|
541
|
+
internalType: "ctUint128",
|
|
542
|
+
name: "",
|
|
543
|
+
type: "uint256",
|
|
544
|
+
},
|
|
545
|
+
],
|
|
546
|
+
stateMutability: "nonpayable",
|
|
547
|
+
type: "function",
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
inputs: [
|
|
551
|
+
{
|
|
552
|
+
components: [
|
|
553
|
+
{
|
|
554
|
+
internalType: "ctUint128",
|
|
555
|
+
name: "ciphertext",
|
|
556
|
+
type: "uint256",
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
internalType: "bytes",
|
|
560
|
+
name: "signature",
|
|
561
|
+
type: "bytes",
|
|
562
|
+
},
|
|
563
|
+
],
|
|
564
|
+
internalType: "struct itUint128",
|
|
565
|
+
name: "amount",
|
|
566
|
+
type: "tuple",
|
|
567
|
+
},
|
|
568
|
+
],
|
|
569
|
+
name: "subtractFromBalance128",
|
|
570
|
+
outputs: [
|
|
571
|
+
{
|
|
572
|
+
internalType: "ctUint128",
|
|
573
|
+
name: "",
|
|
574
|
+
type: "uint256",
|
|
575
|
+
},
|
|
576
|
+
],
|
|
577
|
+
stateMutability: "nonpayable",
|
|
578
|
+
type: "function",
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
inputs: [],
|
|
582
|
+
name: "version",
|
|
583
|
+
outputs: [
|
|
584
|
+
{
|
|
585
|
+
internalType: "string",
|
|
586
|
+
name: "",
|
|
587
|
+
type: "string",
|
|
588
|
+
},
|
|
589
|
+
],
|
|
590
|
+
stateMutability: "pure",
|
|
591
|
+
type: "function",
|
|
592
|
+
},
|
|
593
|
+
] as const;
|
|
594
|
+
|
|
595
|
+
const _bytecode =
|
|
596
|
+
"0x608060405234801561001057600080fd5b50611196806100206000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80637c9b9a1a1161008c578063b523cf5311610066578063b523cf53146101d3578063c25ec0b2146101e6578063c34816da146101f9578063fe8a1b261461020c57600080fd5b80637c9b9a1a146101a5578063930e8613146101b8578063b0200c1e146101c057600080fd5b806346c6215e116100bd57806346c6215e1461014057806354fd4d50146101535780637512a6b01461019257600080fd5b80631b14fcb3146100e457806320d6b802146101175780633e66e0ad14610138575b600080fd5b6100f76100f2366004610d14565b61021f565b604080518251815260209283015192810192909252015b60405180910390f35b61012a610125366004610d63565b6102f4565b60405190815260200161010e565b61012a6103ba565b61012a61014e366004610dc7565b6103dd565b604080518082018252600281527f76320000000000000000000000000000000000000000000000000000000000006020820152905161010e9190610e60565b61012a6101a0366004610d63565b610491565b61012a6101b3366004610dc7565b610536565b6100f76105d8565b61012a6101ce366004610d63565b610608565b61012a6101e1366004610dc7565b6106ad565b6100f76101f4366004610e73565b61070a565b6100f7610207366004610d14565b6107d4565b61012a61021a366004610d63565b61083d565b6040805180820190915260008082526020820152600061024661024184610fd0565b6108e2565b33600090815260016020526040812054919250610263828461099b565b336000818152600160205260409081902083905551919250907f329b130a9fc15f4ed60bd11bfc9d4f971a338b1b3ce2d33c0bf8f1482f869df0906102d99060208082526006908201527f6164643235360000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390a26102eb8133610a5a565b95945050505050565b60008061030861030385611045565b610b44565b9050600061031861030385611045565b905060006103268383610bad565b90503373ffffffffffffffffffffffffffffffffffffffff167f329b130a9fc15f4ed60bd11bfc9d4f971a338b1b3ce2d33c0bf8f1482f869df060405161039e9060208082526006908201527f6d756c3132380000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390a26103b08133610bc2565b9695505050505050565b3360008181526020819052604081205490916103d7908290610bc2565b91505090565b6000806103ec61030384611045565b336000908152602081905260408120549192506104098284610c64565b336000818152602081905260409081902083905551919250907f329b130a9fc15f4ed60bd11bfc9d4f971a338b1b3ce2d33c0bf8f1482f869df09061047f9060208082526006908201527f6164643132380000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390a26102eb8133610bc2565b6000806104a061030385611045565b905060006104b061030385611045565b905060006104be8383610c64565b90503373ffffffffffffffffffffffffffffffffffffffff167f329b130a9fc15f4ed60bd11bfc9d4f971a338b1b3ce2d33c0bf8f1482f869df060405161039e9060208082526006908201527f6164643132380000000000000000000000000000000000000000000000000000604082015260600190565b60008061054561030384611045565b336000908152602081905260408120549192506105628284610c79565b336000818152602081905260409081902083905551919250907f329b130a9fc15f4ed60bd11bfc9d4f971a338b1b3ce2d33c0bf8f1482f869df09061047f9060208082526006908201527f7375623132380000000000000000000000000000000000000000000000000000604082015260600190565b604080518082019091526000808252602082015233600081815260016020526040902054906103d7908290610a5a565b60008061061761030385611045565b9050600061062761030385611045565b905060006106358383610c8e565b90503373ffffffffffffffffffffffffffffffffffffffff167f329b130a9fc15f4ed60bd11bfc9d4f971a338b1b3ce2d33c0bf8f1482f869df060405161039e9060208082526006908201527f6469763132380000000000000000000000000000000000000000000000000000604082015260600190565b6000806106bc61030384611045565b336000818152602081905260408082208490555192935090917f3a9ea8c85479736c3afdf332d065cc8e1d1cb0c2535e37019f76c41d6096355a9190a26107038133610bc2565b9392505050565b6040805180820190915260008082526020820152600061072c61024185610fd0565b9050600061073c61024185610fd0565b9050600061074a838361099b565b90503373ffffffffffffffffffffffffffffffffffffffff167f329b130a9fc15f4ed60bd11bfc9d4f971a338b1b3ce2d33c0bf8f1482f869df06040516107c29060208082526006908201527f6164643235360000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390a26103b08133610a5a565b604080518082019091526000808252602082015260006107f661024184610fd0565b336000818152600160205260408082208490555192935090917f19cca2709f6ff77773f75552bd93fc4b3f1c931eb8476d13d6b52de6e01b19c59190a26107038133610a5a565b60008061084c61030385611045565b9050600061085c61030385611045565b9050600061086a8383610c79565b90503373ffffffffffffffffffffffffffffffffffffffff167f329b130a9fc15f4ed60bd11bfc9d4f971a338b1b3ce2d33c0bf8f1482f869df060405161039e9060208082526006908201527f7375623132380000000000000000000000000000000000000000000000000000604082015260600190565b80518051602091820151918301516040517f0135e466000000000000000000000000000000000000000000000000000000008152600093606493630135e46693610952937f06000000000000000000000000000000000000000000000000000000000000009391906004016110c4565b6020604051808303816000875af1158015610971573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610995919061110b565b92915050565b60006064638c5d01506109b060068085610c9f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681527fffffff0000000000000000000000000000000000000000000000000000000000909116600482015260248101869052604481018590526064015b6020604051808303816000875af1158015610a36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610703919061110b565b6040805180820190915260008082526020820152600080606463e5c83313600660f81b8787604051602001610aba919060609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016815260140190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401610ae793929190611124565b60408051808303816000875af1158015610b05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b299190611165565b60408051808201909152918252602082015295945050505050565b805160208201516040517fe4f36e1000000000000000000000000000000000000000000000000000000000815260009260649263e4f36e1092610952927f0500000000000000000000000000000000000000000000000000000000000000929091600401611124565b6000606463f1d21bb46109b060058085610c9f565b60408051606083901b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660208201528151601481830301815260348201928390527f3c6f0e6800000000000000000000000000000000000000000000000000000000909252600091606491633c6f0e6891610a17917f0500000000000000000000000000000000000000000000000000000000000000918891603801611124565b60006064638c5d01506109b060058085610c9f565b6000606463371d1bf26109b060058085610c9f565b60006064634e9ba4b56109b0600580855b6000816002811115610cb357610cb3611095565b60ff166008846006811115610cca57610cca611095565b61ffff16901b61ffff166010866006811115610ce857610ce8611095565b62ffffff16901b171760e81b949350505050565b600060608284031215610d0e57600080fd5b50919050565b600060208284031215610d2657600080fd5b813567ffffffffffffffff811115610d3d57600080fd5b610d4984828501610cfc565b949350505050565b600060408284031215610d0e57600080fd5b60008060408385031215610d7657600080fd5b823567ffffffffffffffff80821115610d8e57600080fd5b610d9a86838701610d51565b93506020850135915080821115610db057600080fd5b50610dbd85828601610d51565b9150509250929050565b600060208284031215610dd957600080fd5b813567ffffffffffffffff811115610df057600080fd5b610d4984828501610d51565b6000815180845260005b81811015610e2257602081850181015186830182015201610e06565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6020815260006107036020830184610dfc565b60008060408385031215610e8657600080fd5b823567ffffffffffffffff80821115610e9e57600080fd5b610eaa86838701610cfc565b93506020850135915080821115610ec057600080fd5b50610dbd85828601610cfc565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610f1f57610f1f610ecd565b60405290565b600082601f830112610f3657600080fd5b813567ffffffffffffffff80821115610f5157610f51610ecd565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610f9757610f97610ecd565b81604052838152866020858801011115610fb057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008136036060811215610fe357600080fd5b610feb610efc565b6040821215610ff957600080fd5b611001610efc565b843581526020808601359082015281526040840135915067ffffffffffffffff82111561102d57600080fd5b61103936838601610f25565b60208201529392505050565b60006040823603121561105757600080fd5b61105f610efc565b82358152602083013567ffffffffffffffff81111561107d57600080fd5b61108936828601610f25565b60208301525092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7fff00000000000000000000000000000000000000000000000000000000000000851681528360208201528260408201526080606082015260006103b06080830184610dfc565b60006020828403121561111d57600080fd5b5051919050565b7fff00000000000000000000000000000000000000000000000000000000000000841681528260208201526060604082015260006102eb6060830184610dfc565b6000806040838503121561117857600080fd5b50508051602090910151909290915056fea164736f6c6343000813000a";
|
|
597
|
+
|
|
598
|
+
type PrivacyImplementationV2ConstructorParams =
|
|
599
|
+
| [signer?: Signer]
|
|
600
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
601
|
+
|
|
602
|
+
const isSuperArgs = (
|
|
603
|
+
xs: PrivacyImplementationV2ConstructorParams
|
|
604
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
605
|
+
|
|
606
|
+
export class PrivacyImplementationV2__factory extends ContractFactory {
|
|
607
|
+
constructor(...args: PrivacyImplementationV2ConstructorParams) {
|
|
608
|
+
if (isSuperArgs(args)) {
|
|
609
|
+
super(...args);
|
|
610
|
+
} else {
|
|
611
|
+
super(_abi, _bytecode, args[0]);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
override getDeployTransaction(
|
|
616
|
+
overrides?: NonPayableOverrides & { from?: string }
|
|
617
|
+
): Promise<ContractDeployTransaction> {
|
|
618
|
+
return super.getDeployTransaction(overrides || {});
|
|
619
|
+
}
|
|
620
|
+
override deploy(overrides?: NonPayableOverrides & { from?: string }) {
|
|
621
|
+
return super.deploy(overrides || {}) as Promise<
|
|
622
|
+
PrivacyImplementationV2 & {
|
|
623
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
624
|
+
}
|
|
625
|
+
>;
|
|
626
|
+
}
|
|
627
|
+
override connect(
|
|
628
|
+
runner: ContractRunner | null
|
|
629
|
+
): PrivacyImplementationV2__factory {
|
|
630
|
+
return super.connect(runner) as PrivacyImplementationV2__factory;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
static readonly bytecode = _bytecode;
|
|
634
|
+
static readonly abi = _abi;
|
|
635
|
+
static createInterface(): PrivacyImplementationV2Interface {
|
|
636
|
+
return new Interface(_abi) as PrivacyImplementationV2Interface;
|
|
637
|
+
}
|
|
638
|
+
static connect(
|
|
639
|
+
address: string,
|
|
640
|
+
runner?: ContractRunner | null
|
|
641
|
+
): PrivacyImplementationV2 {
|
|
642
|
+
return new Contract(
|
|
643
|
+
address,
|
|
644
|
+
_abi,
|
|
645
|
+
runner
|
|
646
|
+
) as unknown as PrivacyImplementationV2;
|
|
647
|
+
}
|
|
648
|
+
}
|