@coti-io/coti-contracts 1.2.0 → 1.3.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 +1 -1
- package/contracts/messaging/PrivateMessaging.sol +456 -0
- package/contracts/mocks/messaging/PrivateMessagingHarness.sol +54 -0
- package/contracts/mocks/oracle/CotiPriceConsumerMock.sol +31 -0
- package/contracts/mocks/token/ERC20DecimalsMock.sol +21 -0
- package/contracts/mocks/token/PrivateERC20/PrivacyBridgeERC20Mock.sol +8 -3
- package/contracts/node/SoulboundNodeNFT.sol +22 -22
- package/contracts/oracle/CotiPriceConsumer.sol +103 -0
- package/contracts/oracle/ICotiPriceConsumer.sol +15 -0
- package/contracts/oracle/IStdReference.sol +26 -0
- package/contracts/privacyBridge/PrivacyBridge.sol +373 -91
- package/contracts/privacyBridge/PrivacyBridgeCotiNative.sol +209 -161
- package/contracts/privacyBridge/PrivacyBridgeERC20.sol +241 -159
- package/contracts/privacyBridge/PrivacyBridgeUSDCe.sol +7 -1
- package/contracts/privacyBridge/PrivacyBridgeUSDT.sol +7 -1
- package/contracts/privacyBridge/PrivacyBridgeWADA.sol +7 -1
- package/contracts/privacyBridge/PrivacyBridgeWBTC.sol +7 -1
- package/contracts/privacyBridge/PrivacyBridgeWETH.sol +7 -1
- package/contracts/privacyBridge/PrivacyBridgegCoti.sol +7 -1
- package/hardhat.config.ts +5 -2
- package/package.json +2 -2
- package/scripts/add-bridge-operators.cjs +87 -0
- package/scripts/deploy-coti-price-consumer-mainnet.cjs +49 -0
- package/scripts/deployCotiNodeRewards.ts +51 -0
- package/scripts/redeploy-private-and-bridges.cjs +201 -0
- package/scripts/set-bridge-limits-mainnet.cjs +177 -0
- package/scripts/verify-mainnet-private-bridges.cjs +289 -0
- package/sonar-project.properties +11 -0
- package/test/messaging/PrivateMessaging.test.ts +158 -0
- package/test/privacyBridge/UnifiedPrivacyBridges.test.cjs +1663 -0
- package/test/token/PrivateERC20/PrivacyBridge.fees.test.ts +162 -239
- package/typechain-types/@openzeppelin/contracts/access/AccessControl.ts +324 -0
- package/typechain-types/@openzeppelin/contracts/access/AccessControlEnumerable.ts +361 -0
- package/typechain-types/@openzeppelin/contracts/access/IAccessControl.ts +292 -0
- package/typechain-types/@openzeppelin/contracts/access/IAccessControlEnumerable.ts +329 -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/security/Pausable.ts +150 -0
- package/typechain-types/@openzeppelin/contracts/security/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts +330 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +286 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts +1 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts +1 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/ERC721.ts +420 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.ts +420 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/index.ts +3 -0
- package/typechain-types/contracts/disperse/coinByRatio/FixedRatioCoinDisperserLeftoverS1.ts +735 -0
- package/typechain-types/contracts/disperse/coinByRatio/FixedRatioCoinDisperserUnlimitedWindow.ts +734 -0
- package/typechain-types/contracts/disperse/coinByRatio/index.ts +2 -0
- package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/IOwnable.ts +95 -0
- package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/MintDisperser.ts +22 -0
- package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/index.ts +1 -0
- package/typechain-types/contracts/index.ts +8 -0
- package/typechain-types/contracts/messaging/PrivateMessaging.ts +871 -0
- package/typechain-types/contracts/messaging/index.ts +4 -0
- package/typechain-types/contracts/mocks/index.ts +4 -0
- package/typechain-types/contracts/mocks/messaging/PrivateMessagingHarness.ts +951 -0
- package/typechain-types/contracts/mocks/messaging/index.ts +4 -0
- package/typechain-types/contracts/mocks/oracle/CotiPriceConsumerMock.ts +163 -0
- package/typechain-types/contracts/mocks/oracle/index.ts +4 -0
- package/typechain-types/contracts/mocks/token/ERC20DecimalsMock.ts +349 -0
- package/typechain-types/contracts/mocks/token/ERC20Mock.ts +368 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/EncryptedTokenReceiverMock.ts +108 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/PrivacyBridgeERC20Mock.ts +1892 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20AuditorSupplyMock.ts +1296 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20CappedMock.ts +1270 -0
- package/typechain-types/contracts/mocks/{utils/mpc/Bitwise128BitTestsContract.ts → token/PrivateERC20/PrivateERC20GtCallerMock.ts} +47 -67
- package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20Mock.ts +757 -25
- package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/IPrivateERC20TransferAndCallEncrypted.ts +102 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/PrivateERC20ReentrantReceiverMock.ts +154 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/index.ts +5 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/PublicReentrantTokenReceiverMock.ts +155 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/PublicTokenReceiverBoolMock.ts +107 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/PublicTokenReceiverMock.ts +100 -0
- package/typechain-types/contracts/mocks/token/PrivateERC20/index.ts +10 -0
- package/typechain-types/contracts/mocks/token/index.ts +2 -0
- package/typechain-types/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock.ts +6 -6
- package/typechain-types/contracts/node/CotiNodeRewards.ts +566 -0
- package/typechain-types/contracts/node/SoulboundNodeNFT.sol/IERC5192.ts +123 -0
- package/typechain-types/contracts/node/SoulboundNodeNFT.sol/SoulboundNodeNFT.ts +975 -0
- package/typechain-types/contracts/node/SoulboundNodeNFT.sol/index.ts +5 -0
- package/typechain-types/contracts/node/index.ts +6 -0
- package/typechain-types/contracts/oracle/CotiPriceConsumer.ts +256 -0
- package/typechain-types/contracts/oracle/ICotiPriceConsumer.ts +119 -0
- package/typechain-types/contracts/oracle/IStdReference.ts +136 -0
- package/typechain-types/contracts/oracle/index.ts +6 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridge.ts +1628 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridgeCotiNative.ts +1870 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridgeERC20.sol/IHasDecimals.ts +84 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridgeERC20.sol/PrivacyBridgeERC20.ts +1892 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridgeERC20.sol/index.ts +5 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridgeUSDCe.ts +1892 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridgeUSDT.ts +1892 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridgeWADA.ts +1892 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridgeWBTC.ts +1892 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridgeWETH.ts +1892 -0
- package/typechain-types/contracts/privacyBridge/PrivacyBridgegCoti.ts +1892 -0
- package/typechain-types/contracts/privacyBridge/index.ts +13 -0
- package/typechain-types/contracts/token/PrivateERC20/IPrivateERC20.ts +439 -19
- package/typechain-types/contracts/token/PrivateERC20/ITokenReceiver.ts +100 -0
- package/typechain-types/contracts/token/PrivateERC20/ITokenReceiverEncrypted.ts +99 -0
- package/typechain-types/contracts/token/PrivateERC20/PrivateERC20.ts +763 -15
- package/typechain-types/contracts/token/PrivateERC20/index.ts +4 -0
- package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateBridgedUSDC.ts +1270 -0
- package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateCOTI.ts +1270 -0
- package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateCOTITreasuryGovernanceToken.ts +1270 -0
- package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateTetherUSD.ts +1270 -0
- package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateWrappedADA.ts +1270 -0
- package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateWrappedBTC.ts +1270 -0
- package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateWrappedEther.ts +1270 -0
- package/typechain-types/contracts/token/PrivateERC20/tokens/index.ts +10 -0
- package/typechain-types/factories/@openzeppelin/contracts/access/AccessControlEnumerable__factory.ts +276 -0
- package/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.ts +229 -0
- package/typechain-types/factories/@openzeppelin/contracts/access/IAccessControlEnumerable__factory.ts +244 -0
- package/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +197 -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/security/Pausable__factory.ts +61 -0
- package/typechain-types/factories/@openzeppelin/contracts/security/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +356 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +247 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +1 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +1 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/ERC721__factory.ts +416 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts +355 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.ts +2 -0
- package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperserLeftoverS1__factory.ts +791 -0
- package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperserUnlimitedWindow__factory.ts +711 -0
- package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperser__factory.ts +1 -1
- package/typechain-types/factories/contracts/disperse/coinByRatio/index.ts +2 -0
- package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/IOwnable__factory.ts +35 -0
- package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/MintDisperser__factory.ts +19 -1
- package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/index.ts +1 -0
- package/typechain-types/factories/contracts/disperse/disperseToken/TokenDisperser__factory.ts +1 -1
- package/typechain-types/factories/contracts/index.ts +4 -0
- package/typechain-types/factories/contracts/messaging/PrivateMessaging__factory.ts +1035 -0
- package/typechain-types/factories/contracts/messaging/index.ts +4 -0
- package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/index.ts +2 -0
- package/typechain-types/factories/contracts/mocks/messaging/PrivateMessagingHarness__factory.ts +1161 -0
- package/typechain-types/factories/contracts/mocks/messaging/index.ts +4 -0
- package/typechain-types/factories/contracts/mocks/oracle/CotiPriceConsumerMock__factory.ts +159 -0
- package/typechain-types/factories/contracts/mocks/oracle/index.ts +4 -0
- package/typechain-types/factories/contracts/mocks/token/ERC20DecimalsMock__factory.ts +394 -0
- package/typechain-types/factories/contracts/mocks/token/ERC20Mock__factory.ts +392 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/EncryptedTokenReceiverMock__factory.ts +125 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivacyBridgeERC20Mock__factory.ts +1797 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20AuditorSupplyMock__factory.ts +1514 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20CappedMock__factory.ts +1466 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20GtCallerMock__factory.ts +165 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +771 -55
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/IPrivateERC20TransferAndCallEncrypted__factory.ts +54 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/PrivateERC20ReentrantReceiverMock__factory.ts +159 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PublicReentrantTokenReceiverMock__factory.ts +164 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PublicTokenReceiverBoolMock__factory.ts +130 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PublicTokenReceiverMock__factory.ts +102 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/index.ts +9 -0
- package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/token/index.ts +2 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic128TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic256TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise128TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise256TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmetic128WithOverflowBitTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmetic256WithOverflowBitTestsContract__factory.ts +1 -1
- 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 +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison256TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinMax128TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinMax256TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinimalImplementation__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinimalProxy__factory.ts +1 -1
- 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 +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MpcOperationsTestContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Mux128TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Mux256TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/OnBoard128TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/OnBoard256TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyImplementationV1__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyImplementationV2__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyProxy__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Random128TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Random256TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Shift128TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Shift256TestsContract__factory.ts +1 -1
- 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 +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Transfer256TestsContract__factory.ts +1 -1
- 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 +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance256TestsContract__factory.ts +1 -1
- 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 +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertext256TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertextTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +4 -22
- package/typechain-types/factories/contracts/node/CotiNodeRewards__factory.ts +549 -0
- package/typechain-types/factories/contracts/node/SoulboundNodeNFT.sol/IERC5192__factory.ts +54 -0
- package/typechain-types/factories/contracts/node/SoulboundNodeNFT.sol/SoulboundNodeNFT__factory.ts +947 -0
- package/typechain-types/factories/contracts/node/SoulboundNodeNFT.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/node/index.ts +5 -0
- package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +1 -1
- package/typechain-types/factories/contracts/oracle/CotiPriceConsumer__factory.ts +295 -0
- package/typechain-types/factories/contracts/oracle/ICotiPriceConsumer__factory.ts +73 -0
- package/typechain-types/factories/contracts/oracle/IStdReference__factory.ts +107 -0
- package/typechain-types/factories/contracts/oracle/index.ts +6 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeCotiNative__factory.ts +1676 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeERC20.sol/IHasDecimals__factory.ts +38 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeERC20.sol/PrivacyBridgeERC20__factory.ts +1678 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeERC20.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeUSDCe__factory.ts +1782 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeUSDT__factory.ts +1782 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeWADA__factory.ts +1782 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeWBTC__factory.ts +1782 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeWETH__factory.ts +1782 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridge__factory.ts +1367 -0
- package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgegCoti__factory.ts +1782 -0
- package/typechain-types/factories/contracts/privacyBridge/index.ts +12 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/IPrivateERC20__factory.ts +481 -35
- package/typechain-types/factories/contracts/token/PrivateERC20/ITokenReceiverEncrypted__factory.ts +53 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/ITokenReceiver__factory.ts +54 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/PrivateERC20__factory.ts +793 -59
- package/typechain-types/factories/contracts/token/PrivateERC20/index.ts +3 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateBridgedUSDC__factory.ts +1445 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateCOTITreasuryGovernanceToken__factory.ts +1451 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateCOTI__factory.ts +1442 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateTetherUSD__factory.ts +1445 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateWrappedADA__factory.ts +1445 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateWrappedBTC__factory.ts +1445 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateWrappedEther__factory.ts +1451 -0
- package/typechain-types/factories/contracts/token/PrivateERC20/tokens/index.ts +10 -0
- package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +953 -17
- package/typechain-types/index.ts +104 -0
- package/typechain-types/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract.ts +0 -341
- package/typechain-types/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract.ts +0 -347
- package/typechain-types/contracts/mocks/utils/mpc/Bitwise256BitTestsContract.ts +0 -186
- package/typechain-types/contracts/mocks/utils/mpc/Comparison128BitTestsContract.ts +0 -260
- package/typechain-types/contracts/mocks/utils/mpc/Comparison256BitTestsContract.ts +0 -260
- package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract.ts +0 -302
- package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract.ts +0 -322
- package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract__factory.ts +0 -349
- package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract__factory.ts +0 -364
- package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise128BitTestsContract__factory.ts +0 -182
- package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise256BitTestsContract__factory.ts +0 -182
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison128BitTestsContract__factory.ts +0 -255
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison256BitTestsContract__factory.ts +0 -255
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract__factory.ts +0 -332
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract__factory.ts +0 -380
|
@@ -20,6 +20,11 @@ const _abi = [
|
|
|
20
20
|
name: "ERC20InvalidApprover",
|
|
21
21
|
type: "error",
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [],
|
|
25
|
+
name: "ERC20InvalidMetadata",
|
|
26
|
+
type: "error",
|
|
27
|
+
},
|
|
23
28
|
{
|
|
24
29
|
inputs: [
|
|
25
30
|
{
|
|
@@ -53,6 +58,82 @@ const _abi = [
|
|
|
53
58
|
name: "ERC20InvalidSpender",
|
|
54
59
|
type: "error",
|
|
55
60
|
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [
|
|
63
|
+
{
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "account",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
name: "ERC20SelfTransferNotAllowed",
|
|
70
|
+
type: "error",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [],
|
|
74
|
+
name: "ERC20UnsafeApprove",
|
|
75
|
+
type: "error",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
inputs: [],
|
|
79
|
+
name: "PublicAmountsDisabled",
|
|
80
|
+
type: "error",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
inputs: [
|
|
84
|
+
{
|
|
85
|
+
internalType: "address",
|
|
86
|
+
name: "to",
|
|
87
|
+
type: "address",
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
name: "TransferAndCallRequiresContract",
|
|
91
|
+
type: "error",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
anonymous: false,
|
|
95
|
+
inputs: [
|
|
96
|
+
{
|
|
97
|
+
indexed: true,
|
|
98
|
+
internalType: "address",
|
|
99
|
+
name: "account",
|
|
100
|
+
type: "address",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
indexed: true,
|
|
104
|
+
internalType: "address",
|
|
105
|
+
name: "newAddress",
|
|
106
|
+
type: "address",
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
name: "AccountEncryptionAddressSet",
|
|
110
|
+
type: "event",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
anonymous: false,
|
|
114
|
+
inputs: [
|
|
115
|
+
{
|
|
116
|
+
indexed: true,
|
|
117
|
+
internalType: "address",
|
|
118
|
+
name: "owner",
|
|
119
|
+
type: "address",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
indexed: true,
|
|
123
|
+
internalType: "address",
|
|
124
|
+
name: "spender",
|
|
125
|
+
type: "address",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
indexed: false,
|
|
129
|
+
internalType: "bool",
|
|
130
|
+
name: "isSpender",
|
|
131
|
+
type: "bool",
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
name: "AllowanceReencrypted",
|
|
135
|
+
type: "event",
|
|
136
|
+
},
|
|
56
137
|
{
|
|
57
138
|
anonymous: false,
|
|
58
139
|
inputs: [
|
|
@@ -108,6 +189,94 @@ const _abi = [
|
|
|
108
189
|
name: "Approval",
|
|
109
190
|
type: "event",
|
|
110
191
|
},
|
|
192
|
+
{
|
|
193
|
+
anonymous: false,
|
|
194
|
+
inputs: [
|
|
195
|
+
{
|
|
196
|
+
indexed: false,
|
|
197
|
+
internalType: "bool",
|
|
198
|
+
name: "enabled",
|
|
199
|
+
type: "bool",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
name: "PublicAmountsEnabledSet",
|
|
203
|
+
type: "event",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
anonymous: false,
|
|
207
|
+
inputs: [
|
|
208
|
+
{
|
|
209
|
+
indexed: true,
|
|
210
|
+
internalType: "bytes32",
|
|
211
|
+
name: "role",
|
|
212
|
+
type: "bytes32",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
indexed: true,
|
|
216
|
+
internalType: "bytes32",
|
|
217
|
+
name: "previousAdminRole",
|
|
218
|
+
type: "bytes32",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
indexed: true,
|
|
222
|
+
internalType: "bytes32",
|
|
223
|
+
name: "newAdminRole",
|
|
224
|
+
type: "bytes32",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
name: "RoleAdminChanged",
|
|
228
|
+
type: "event",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
anonymous: false,
|
|
232
|
+
inputs: [
|
|
233
|
+
{
|
|
234
|
+
indexed: true,
|
|
235
|
+
internalType: "bytes32",
|
|
236
|
+
name: "role",
|
|
237
|
+
type: "bytes32",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
indexed: true,
|
|
241
|
+
internalType: "address",
|
|
242
|
+
name: "account",
|
|
243
|
+
type: "address",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
indexed: true,
|
|
247
|
+
internalType: "address",
|
|
248
|
+
name: "sender",
|
|
249
|
+
type: "address",
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
name: "RoleGranted",
|
|
253
|
+
type: "event",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
anonymous: false,
|
|
257
|
+
inputs: [
|
|
258
|
+
{
|
|
259
|
+
indexed: true,
|
|
260
|
+
internalType: "bytes32",
|
|
261
|
+
name: "role",
|
|
262
|
+
type: "bytes32",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
indexed: true,
|
|
266
|
+
internalType: "address",
|
|
267
|
+
name: "account",
|
|
268
|
+
type: "address",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
indexed: true,
|
|
272
|
+
internalType: "address",
|
|
273
|
+
name: "sender",
|
|
274
|
+
type: "address",
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
name: "RoleRevoked",
|
|
278
|
+
type: "event",
|
|
279
|
+
},
|
|
111
280
|
{
|
|
112
281
|
anonymous: false,
|
|
113
282
|
inputs: [
|
|
@@ -163,6 +332,32 @@ const _abi = [
|
|
|
163
332
|
name: "Transfer",
|
|
164
333
|
type: "event",
|
|
165
334
|
},
|
|
335
|
+
{
|
|
336
|
+
inputs: [],
|
|
337
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
338
|
+
outputs: [
|
|
339
|
+
{
|
|
340
|
+
internalType: "bytes32",
|
|
341
|
+
name: "",
|
|
342
|
+
type: "bytes32",
|
|
343
|
+
},
|
|
344
|
+
],
|
|
345
|
+
stateMutability: "view",
|
|
346
|
+
type: "function",
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
inputs: [],
|
|
350
|
+
name: "MINTER_ROLE",
|
|
351
|
+
outputs: [
|
|
352
|
+
{
|
|
353
|
+
internalType: "bytes32",
|
|
354
|
+
name: "",
|
|
355
|
+
type: "bytes32",
|
|
356
|
+
},
|
|
357
|
+
],
|
|
358
|
+
stateMutability: "view",
|
|
359
|
+
type: "function",
|
|
360
|
+
},
|
|
166
361
|
{
|
|
167
362
|
inputs: [
|
|
168
363
|
{
|
|
@@ -291,19 +486,13 @@ const _abi = [
|
|
|
291
486
|
type: "address",
|
|
292
487
|
},
|
|
293
488
|
{
|
|
294
|
-
internalType: "
|
|
489
|
+
internalType: "uint256",
|
|
295
490
|
name: "value",
|
|
296
491
|
type: "uint256",
|
|
297
492
|
},
|
|
298
493
|
],
|
|
299
494
|
name: "approve",
|
|
300
|
-
outputs: [
|
|
301
|
-
{
|
|
302
|
-
internalType: "bool",
|
|
303
|
-
name: "",
|
|
304
|
-
type: "bool",
|
|
305
|
-
},
|
|
306
|
-
],
|
|
495
|
+
outputs: [],
|
|
307
496
|
stateMutability: "nonpayable",
|
|
308
497
|
type: "function",
|
|
309
498
|
},
|
|
@@ -345,13 +534,25 @@ const _abi = [
|
|
|
345
534
|
},
|
|
346
535
|
],
|
|
347
536
|
name: "approve",
|
|
348
|
-
outputs: [
|
|
537
|
+
outputs: [],
|
|
538
|
+
stateMutability: "nonpayable",
|
|
539
|
+
type: "function",
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
inputs: [
|
|
349
543
|
{
|
|
350
|
-
internalType: "
|
|
351
|
-
name: "",
|
|
352
|
-
type: "
|
|
544
|
+
internalType: "address",
|
|
545
|
+
name: "spender",
|
|
546
|
+
type: "address",
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
internalType: "gtUint256",
|
|
550
|
+
name: "value",
|
|
551
|
+
type: "uint256",
|
|
353
552
|
},
|
|
354
553
|
],
|
|
554
|
+
name: "approveGT",
|
|
555
|
+
outputs: [],
|
|
355
556
|
stateMutability: "nonpayable",
|
|
356
557
|
type: "function",
|
|
357
558
|
},
|
|
@@ -400,53 +601,454 @@ const _abi = [
|
|
|
400
601
|
type: "function",
|
|
401
602
|
},
|
|
402
603
|
{
|
|
403
|
-
inputs: [
|
|
404
|
-
name: "decimals",
|
|
405
|
-
outputs: [
|
|
604
|
+
inputs: [
|
|
406
605
|
{
|
|
407
|
-
internalType: "
|
|
408
|
-
name: "",
|
|
409
|
-
type: "
|
|
606
|
+
internalType: "uint256",
|
|
607
|
+
name: "amount",
|
|
608
|
+
type: "uint256",
|
|
410
609
|
},
|
|
411
610
|
],
|
|
412
|
-
|
|
611
|
+
name: "burn",
|
|
612
|
+
outputs: [],
|
|
613
|
+
stateMutability: "nonpayable",
|
|
413
614
|
type: "function",
|
|
414
615
|
},
|
|
415
616
|
{
|
|
416
|
-
inputs: [
|
|
417
|
-
name: "name",
|
|
418
|
-
outputs: [
|
|
617
|
+
inputs: [
|
|
419
618
|
{
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
619
|
+
components: [
|
|
620
|
+
{
|
|
621
|
+
components: [
|
|
622
|
+
{
|
|
623
|
+
internalType: "ctUint128",
|
|
624
|
+
name: "ciphertextHigh",
|
|
625
|
+
type: "uint256",
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
internalType: "ctUint128",
|
|
629
|
+
name: "ciphertextLow",
|
|
630
|
+
type: "uint256",
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
internalType: "struct ctUint256",
|
|
634
|
+
name: "ciphertext",
|
|
635
|
+
type: "tuple",
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
internalType: "bytes",
|
|
639
|
+
name: "signature",
|
|
640
|
+
type: "bytes",
|
|
641
|
+
},
|
|
642
|
+
],
|
|
643
|
+
internalType: "struct itUint256",
|
|
644
|
+
name: "amount",
|
|
645
|
+
type: "tuple",
|
|
423
646
|
},
|
|
424
647
|
],
|
|
425
|
-
|
|
648
|
+
name: "burn",
|
|
649
|
+
outputs: [],
|
|
650
|
+
stateMutability: "nonpayable",
|
|
426
651
|
type: "function",
|
|
427
652
|
},
|
|
428
653
|
{
|
|
429
654
|
inputs: [
|
|
430
655
|
{
|
|
431
|
-
internalType: "
|
|
432
|
-
name: "
|
|
433
|
-
type: "
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
internalType: "bool",
|
|
437
|
-
name: "isSpender",
|
|
438
|
-
type: "bool",
|
|
656
|
+
internalType: "gtUint256",
|
|
657
|
+
name: "gtAmount",
|
|
658
|
+
type: "uint256",
|
|
439
659
|
},
|
|
440
660
|
],
|
|
441
|
-
name: "
|
|
661
|
+
name: "burnGt",
|
|
662
|
+
outputs: [],
|
|
663
|
+
stateMutability: "nonpayable",
|
|
664
|
+
type: "function",
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
inputs: [],
|
|
668
|
+
name: "decimals",
|
|
442
669
|
outputs: [
|
|
443
670
|
{
|
|
444
|
-
internalType: "
|
|
671
|
+
internalType: "uint8",
|
|
445
672
|
name: "",
|
|
446
|
-
type: "
|
|
673
|
+
type: "uint8",
|
|
447
674
|
},
|
|
448
675
|
],
|
|
449
|
-
stateMutability: "
|
|
676
|
+
stateMutability: "view",
|
|
677
|
+
type: "function",
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
inputs: [
|
|
681
|
+
{
|
|
682
|
+
internalType: "address",
|
|
683
|
+
name: "spender",
|
|
684
|
+
type: "address",
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
internalType: "uint256",
|
|
688
|
+
name: "subtractedValue",
|
|
689
|
+
type: "uint256",
|
|
690
|
+
},
|
|
691
|
+
],
|
|
692
|
+
name: "decreaseAllowance",
|
|
693
|
+
outputs: [],
|
|
694
|
+
stateMutability: "nonpayable",
|
|
695
|
+
type: "function",
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
inputs: [
|
|
699
|
+
{
|
|
700
|
+
internalType: "address",
|
|
701
|
+
name: "spender",
|
|
702
|
+
type: "address",
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
components: [
|
|
706
|
+
{
|
|
707
|
+
components: [
|
|
708
|
+
{
|
|
709
|
+
internalType: "ctUint128",
|
|
710
|
+
name: "ciphertextHigh",
|
|
711
|
+
type: "uint256",
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
internalType: "ctUint128",
|
|
715
|
+
name: "ciphertextLow",
|
|
716
|
+
type: "uint256",
|
|
717
|
+
},
|
|
718
|
+
],
|
|
719
|
+
internalType: "struct ctUint256",
|
|
720
|
+
name: "ciphertext",
|
|
721
|
+
type: "tuple",
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
internalType: "bytes",
|
|
725
|
+
name: "signature",
|
|
726
|
+
type: "bytes",
|
|
727
|
+
},
|
|
728
|
+
],
|
|
729
|
+
internalType: "struct itUint256",
|
|
730
|
+
name: "subtractedValue",
|
|
731
|
+
type: "tuple",
|
|
732
|
+
},
|
|
733
|
+
],
|
|
734
|
+
name: "decreaseAllowance",
|
|
735
|
+
outputs: [],
|
|
736
|
+
stateMutability: "nonpayable",
|
|
737
|
+
type: "function",
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
inputs: [
|
|
741
|
+
{
|
|
742
|
+
internalType: "address",
|
|
743
|
+
name: "spender",
|
|
744
|
+
type: "address",
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
internalType: "gtUint256",
|
|
748
|
+
name: "subtractedValue",
|
|
749
|
+
type: "uint256",
|
|
750
|
+
},
|
|
751
|
+
],
|
|
752
|
+
name: "decreaseAllowanceGT",
|
|
753
|
+
outputs: [],
|
|
754
|
+
stateMutability: "nonpayable",
|
|
755
|
+
type: "function",
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
inputs: [
|
|
759
|
+
{
|
|
760
|
+
internalType: "bytes32",
|
|
761
|
+
name: "role",
|
|
762
|
+
type: "bytes32",
|
|
763
|
+
},
|
|
764
|
+
],
|
|
765
|
+
name: "getRoleAdmin",
|
|
766
|
+
outputs: [
|
|
767
|
+
{
|
|
768
|
+
internalType: "bytes32",
|
|
769
|
+
name: "",
|
|
770
|
+
type: "bytes32",
|
|
771
|
+
},
|
|
772
|
+
],
|
|
773
|
+
stateMutability: "view",
|
|
774
|
+
type: "function",
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
inputs: [
|
|
778
|
+
{
|
|
779
|
+
internalType: "bytes32",
|
|
780
|
+
name: "role",
|
|
781
|
+
type: "bytes32",
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
internalType: "address",
|
|
785
|
+
name: "account",
|
|
786
|
+
type: "address",
|
|
787
|
+
},
|
|
788
|
+
],
|
|
789
|
+
name: "grantRole",
|
|
790
|
+
outputs: [],
|
|
791
|
+
stateMutability: "nonpayable",
|
|
792
|
+
type: "function",
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
inputs: [
|
|
796
|
+
{
|
|
797
|
+
internalType: "bytes32",
|
|
798
|
+
name: "role",
|
|
799
|
+
type: "bytes32",
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
internalType: "address",
|
|
803
|
+
name: "account",
|
|
804
|
+
type: "address",
|
|
805
|
+
},
|
|
806
|
+
],
|
|
807
|
+
name: "hasRole",
|
|
808
|
+
outputs: [
|
|
809
|
+
{
|
|
810
|
+
internalType: "bool",
|
|
811
|
+
name: "",
|
|
812
|
+
type: "bool",
|
|
813
|
+
},
|
|
814
|
+
],
|
|
815
|
+
stateMutability: "view",
|
|
816
|
+
type: "function",
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
inputs: [
|
|
820
|
+
{
|
|
821
|
+
internalType: "address",
|
|
822
|
+
name: "spender",
|
|
823
|
+
type: "address",
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
internalType: "uint256",
|
|
827
|
+
name: "addedValue",
|
|
828
|
+
type: "uint256",
|
|
829
|
+
},
|
|
830
|
+
],
|
|
831
|
+
name: "increaseAllowance",
|
|
832
|
+
outputs: [],
|
|
833
|
+
stateMutability: "nonpayable",
|
|
834
|
+
type: "function",
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
inputs: [
|
|
838
|
+
{
|
|
839
|
+
internalType: "address",
|
|
840
|
+
name: "spender",
|
|
841
|
+
type: "address",
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
components: [
|
|
845
|
+
{
|
|
846
|
+
components: [
|
|
847
|
+
{
|
|
848
|
+
internalType: "ctUint128",
|
|
849
|
+
name: "ciphertextHigh",
|
|
850
|
+
type: "uint256",
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
internalType: "ctUint128",
|
|
854
|
+
name: "ciphertextLow",
|
|
855
|
+
type: "uint256",
|
|
856
|
+
},
|
|
857
|
+
],
|
|
858
|
+
internalType: "struct ctUint256",
|
|
859
|
+
name: "ciphertext",
|
|
860
|
+
type: "tuple",
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
internalType: "bytes",
|
|
864
|
+
name: "signature",
|
|
865
|
+
type: "bytes",
|
|
866
|
+
},
|
|
867
|
+
],
|
|
868
|
+
internalType: "struct itUint256",
|
|
869
|
+
name: "addedValue",
|
|
870
|
+
type: "tuple",
|
|
871
|
+
},
|
|
872
|
+
],
|
|
873
|
+
name: "increaseAllowance",
|
|
874
|
+
outputs: [],
|
|
875
|
+
stateMutability: "nonpayable",
|
|
876
|
+
type: "function",
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
inputs: [
|
|
880
|
+
{
|
|
881
|
+
internalType: "address",
|
|
882
|
+
name: "spender",
|
|
883
|
+
type: "address",
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
internalType: "gtUint256",
|
|
887
|
+
name: "addedValue",
|
|
888
|
+
type: "uint256",
|
|
889
|
+
},
|
|
890
|
+
],
|
|
891
|
+
name: "increaseAllowanceGT",
|
|
892
|
+
outputs: [],
|
|
893
|
+
stateMutability: "nonpayable",
|
|
894
|
+
type: "function",
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
inputs: [
|
|
898
|
+
{
|
|
899
|
+
internalType: "address",
|
|
900
|
+
name: "to",
|
|
901
|
+
type: "address",
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
internalType: "uint256",
|
|
905
|
+
name: "amount",
|
|
906
|
+
type: "uint256",
|
|
907
|
+
},
|
|
908
|
+
],
|
|
909
|
+
name: "mint",
|
|
910
|
+
outputs: [],
|
|
911
|
+
stateMutability: "nonpayable",
|
|
912
|
+
type: "function",
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
inputs: [
|
|
916
|
+
{
|
|
917
|
+
internalType: "address",
|
|
918
|
+
name: "to",
|
|
919
|
+
type: "address",
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
components: [
|
|
923
|
+
{
|
|
924
|
+
components: [
|
|
925
|
+
{
|
|
926
|
+
internalType: "ctUint128",
|
|
927
|
+
name: "ciphertextHigh",
|
|
928
|
+
type: "uint256",
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
internalType: "ctUint128",
|
|
932
|
+
name: "ciphertextLow",
|
|
933
|
+
type: "uint256",
|
|
934
|
+
},
|
|
935
|
+
],
|
|
936
|
+
internalType: "struct ctUint256",
|
|
937
|
+
name: "ciphertext",
|
|
938
|
+
type: "tuple",
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
internalType: "bytes",
|
|
942
|
+
name: "signature",
|
|
943
|
+
type: "bytes",
|
|
944
|
+
},
|
|
945
|
+
],
|
|
946
|
+
internalType: "struct itUint256",
|
|
947
|
+
name: "amount",
|
|
948
|
+
type: "tuple",
|
|
949
|
+
},
|
|
950
|
+
],
|
|
951
|
+
name: "mint",
|
|
952
|
+
outputs: [],
|
|
953
|
+
stateMutability: "nonpayable",
|
|
954
|
+
type: "function",
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
inputs: [
|
|
958
|
+
{
|
|
959
|
+
internalType: "address",
|
|
960
|
+
name: "to",
|
|
961
|
+
type: "address",
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
internalType: "gtUint256",
|
|
965
|
+
name: "gtAmount",
|
|
966
|
+
type: "uint256",
|
|
967
|
+
},
|
|
968
|
+
],
|
|
969
|
+
name: "mintGt",
|
|
970
|
+
outputs: [],
|
|
971
|
+
stateMutability: "nonpayable",
|
|
972
|
+
type: "function",
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
inputs: [],
|
|
976
|
+
name: "name",
|
|
977
|
+
outputs: [
|
|
978
|
+
{
|
|
979
|
+
internalType: "string",
|
|
980
|
+
name: "",
|
|
981
|
+
type: "string",
|
|
982
|
+
},
|
|
983
|
+
],
|
|
984
|
+
stateMutability: "view",
|
|
985
|
+
type: "function",
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
inputs: [],
|
|
989
|
+
name: "publicAmountsEnabled",
|
|
990
|
+
outputs: [
|
|
991
|
+
{
|
|
992
|
+
internalType: "bool",
|
|
993
|
+
name: "",
|
|
994
|
+
type: "bool",
|
|
995
|
+
},
|
|
996
|
+
],
|
|
997
|
+
stateMutability: "view",
|
|
998
|
+
type: "function",
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
inputs: [
|
|
1002
|
+
{
|
|
1003
|
+
internalType: "address",
|
|
1004
|
+
name: "account",
|
|
1005
|
+
type: "address",
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
internalType: "bool",
|
|
1009
|
+
name: "isSpender",
|
|
1010
|
+
type: "bool",
|
|
1011
|
+
},
|
|
1012
|
+
],
|
|
1013
|
+
name: "reencryptAllowance",
|
|
1014
|
+
outputs: [],
|
|
1015
|
+
stateMutability: "nonpayable",
|
|
1016
|
+
type: "function",
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
inputs: [
|
|
1020
|
+
{
|
|
1021
|
+
internalType: "bytes32",
|
|
1022
|
+
name: "role",
|
|
1023
|
+
type: "bytes32",
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
internalType: "address",
|
|
1027
|
+
name: "account",
|
|
1028
|
+
type: "address",
|
|
1029
|
+
},
|
|
1030
|
+
],
|
|
1031
|
+
name: "renounceRole",
|
|
1032
|
+
outputs: [],
|
|
1033
|
+
stateMutability: "nonpayable",
|
|
1034
|
+
type: "function",
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
inputs: [
|
|
1038
|
+
{
|
|
1039
|
+
internalType: "bytes32",
|
|
1040
|
+
name: "role",
|
|
1041
|
+
type: "bytes32",
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
internalType: "address",
|
|
1045
|
+
name: "account",
|
|
1046
|
+
type: "address",
|
|
1047
|
+
},
|
|
1048
|
+
],
|
|
1049
|
+
name: "revokeRole",
|
|
1050
|
+
outputs: [],
|
|
1051
|
+
stateMutability: "nonpayable",
|
|
450
1052
|
type: "function",
|
|
451
1053
|
},
|
|
452
1054
|
{
|
|
@@ -468,6 +1070,51 @@ const _abi = [
|
|
|
468
1070
|
stateMutability: "nonpayable",
|
|
469
1071
|
type: "function",
|
|
470
1072
|
},
|
|
1073
|
+
{
|
|
1074
|
+
inputs: [
|
|
1075
|
+
{
|
|
1076
|
+
internalType: "bool",
|
|
1077
|
+
name: "enabled",
|
|
1078
|
+
type: "bool",
|
|
1079
|
+
},
|
|
1080
|
+
],
|
|
1081
|
+
name: "setPublicAmountsEnabled",
|
|
1082
|
+
outputs: [],
|
|
1083
|
+
stateMutability: "nonpayable",
|
|
1084
|
+
type: "function",
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
inputs: [],
|
|
1088
|
+
name: "supplyCap",
|
|
1089
|
+
outputs: [
|
|
1090
|
+
{
|
|
1091
|
+
internalType: "uint256",
|
|
1092
|
+
name: "",
|
|
1093
|
+
type: "uint256",
|
|
1094
|
+
},
|
|
1095
|
+
],
|
|
1096
|
+
stateMutability: "view",
|
|
1097
|
+
type: "function",
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
inputs: [
|
|
1101
|
+
{
|
|
1102
|
+
internalType: "bytes4",
|
|
1103
|
+
name: "interfaceId",
|
|
1104
|
+
type: "bytes4",
|
|
1105
|
+
},
|
|
1106
|
+
],
|
|
1107
|
+
name: "supportsInterface",
|
|
1108
|
+
outputs: [
|
|
1109
|
+
{
|
|
1110
|
+
internalType: "bool",
|
|
1111
|
+
name: "",
|
|
1112
|
+
type: "bool",
|
|
1113
|
+
},
|
|
1114
|
+
],
|
|
1115
|
+
stateMutability: "view",
|
|
1116
|
+
type: "function",
|
|
1117
|
+
},
|
|
471
1118
|
{
|
|
472
1119
|
inputs: [],
|
|
473
1120
|
name: "symbol",
|
|
@@ -532,13 +1179,25 @@ const _abi = [
|
|
|
532
1179
|
},
|
|
533
1180
|
],
|
|
534
1181
|
name: "transfer",
|
|
535
|
-
outputs: [
|
|
1182
|
+
outputs: [],
|
|
1183
|
+
stateMutability: "nonpayable",
|
|
1184
|
+
type: "function",
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
inputs: [
|
|
536
1188
|
{
|
|
537
|
-
internalType: "
|
|
538
|
-
name: "",
|
|
1189
|
+
internalType: "address",
|
|
1190
|
+
name: "to",
|
|
1191
|
+
type: "address",
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
internalType: "uint256",
|
|
1195
|
+
name: "value",
|
|
539
1196
|
type: "uint256",
|
|
540
1197
|
},
|
|
541
1198
|
],
|
|
1199
|
+
name: "transfer",
|
|
1200
|
+
outputs: [],
|
|
542
1201
|
stateMutability: "nonpayable",
|
|
543
1202
|
type: "function",
|
|
544
1203
|
},
|
|
@@ -550,19 +1209,65 @@ const _abi = [
|
|
|
550
1209
|
type: "address",
|
|
551
1210
|
},
|
|
552
1211
|
{
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
1212
|
+
components: [
|
|
1213
|
+
{
|
|
1214
|
+
components: [
|
|
1215
|
+
{
|
|
1216
|
+
internalType: "ctUint128",
|
|
1217
|
+
name: "ciphertextHigh",
|
|
1218
|
+
type: "uint256",
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
internalType: "ctUint128",
|
|
1222
|
+
name: "ciphertextLow",
|
|
1223
|
+
type: "uint256",
|
|
1224
|
+
},
|
|
1225
|
+
],
|
|
1226
|
+
internalType: "struct ctUint256",
|
|
1227
|
+
name: "ciphertext",
|
|
1228
|
+
type: "tuple",
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
internalType: "bytes",
|
|
1232
|
+
name: "signature",
|
|
1233
|
+
type: "bytes",
|
|
1234
|
+
},
|
|
1235
|
+
],
|
|
1236
|
+
internalType: "struct itUint256",
|
|
1237
|
+
name: "amount",
|
|
1238
|
+
type: "tuple",
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
internalType: "bytes",
|
|
1242
|
+
name: "data",
|
|
1243
|
+
type: "bytes",
|
|
556
1244
|
},
|
|
557
1245
|
],
|
|
558
|
-
name: "
|
|
559
|
-
outputs: [
|
|
1246
|
+
name: "transferAndCall",
|
|
1247
|
+
outputs: [],
|
|
1248
|
+
stateMutability: "nonpayable",
|
|
1249
|
+
type: "function",
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
inputs: [
|
|
560
1253
|
{
|
|
561
|
-
internalType: "
|
|
562
|
-
name: "",
|
|
1254
|
+
internalType: "address",
|
|
1255
|
+
name: "to",
|
|
1256
|
+
type: "address",
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
internalType: "uint256",
|
|
1260
|
+
name: "amount",
|
|
563
1261
|
type: "uint256",
|
|
564
1262
|
},
|
|
1263
|
+
{
|
|
1264
|
+
internalType: "bytes",
|
|
1265
|
+
name: "data",
|
|
1266
|
+
type: "bytes",
|
|
1267
|
+
},
|
|
565
1268
|
],
|
|
1269
|
+
name: "transferAndCall",
|
|
1270
|
+
outputs: [],
|
|
566
1271
|
stateMutability: "nonpayable",
|
|
567
1272
|
type: "function",
|
|
568
1273
|
},
|
|
@@ -579,19 +1284,13 @@ const _abi = [
|
|
|
579
1284
|
type: "address",
|
|
580
1285
|
},
|
|
581
1286
|
{
|
|
582
|
-
internalType: "
|
|
1287
|
+
internalType: "uint256",
|
|
583
1288
|
name: "value",
|
|
584
1289
|
type: "uint256",
|
|
585
1290
|
},
|
|
586
1291
|
],
|
|
587
1292
|
name: "transferFrom",
|
|
588
|
-
outputs: [
|
|
589
|
-
{
|
|
590
|
-
internalType: "gtBool",
|
|
591
|
-
name: "",
|
|
592
|
-
type: "uint256",
|
|
593
|
-
},
|
|
594
|
-
],
|
|
1293
|
+
outputs: [],
|
|
595
1294
|
stateMutability: "nonpayable",
|
|
596
1295
|
type: "function",
|
|
597
1296
|
},
|
|
@@ -638,13 +1337,48 @@ const _abi = [
|
|
|
638
1337
|
},
|
|
639
1338
|
],
|
|
640
1339
|
name: "transferFrom",
|
|
641
|
-
outputs: [
|
|
1340
|
+
outputs: [],
|
|
1341
|
+
stateMutability: "nonpayable",
|
|
1342
|
+
type: "function",
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
inputs: [
|
|
642
1346
|
{
|
|
643
|
-
internalType: "
|
|
644
|
-
name: "",
|
|
1347
|
+
internalType: "address",
|
|
1348
|
+
name: "from",
|
|
1349
|
+
type: "address",
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
internalType: "address",
|
|
1353
|
+
name: "to",
|
|
1354
|
+
type: "address",
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
internalType: "gtUint256",
|
|
1358
|
+
name: "value",
|
|
1359
|
+
type: "uint256",
|
|
1360
|
+
},
|
|
1361
|
+
],
|
|
1362
|
+
name: "transferFromGT",
|
|
1363
|
+
outputs: [],
|
|
1364
|
+
stateMutability: "nonpayable",
|
|
1365
|
+
type: "function",
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
inputs: [
|
|
1369
|
+
{
|
|
1370
|
+
internalType: "address",
|
|
1371
|
+
name: "to",
|
|
1372
|
+
type: "address",
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
internalType: "gtUint256",
|
|
1376
|
+
name: "value",
|
|
645
1377
|
type: "uint256",
|
|
646
1378
|
},
|
|
647
1379
|
],
|
|
1380
|
+
name: "transferGT",
|
|
1381
|
+
outputs: [],
|
|
648
1382
|
stateMutability: "nonpayable",
|
|
649
1383
|
type: "function",
|
|
650
1384
|
},
|