@sudobility/contracts 0.14.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/README.md +353 -0
- package/artifacts/contracts/Mailer.sol/Mailer.d.ts +1146 -0
- package/artifacts/contracts/Mailer.sol/Mailer.dbg.json +4 -0
- package/artifacts/contracts/Mailer.sol/Mailer.json +1096 -0
- package/artifacts/contracts/Mailer.sol/artifacts.d.ts +21 -0
- package/artifacts/contracts/MockUSDC.sol/MockUSDC.d.ts +284 -0
- package/artifacts/contracts/MockUSDC.sol/MockUSDC.dbg.json +4 -0
- package/artifacts/contracts/MockUSDC.sol/MockUSDC.json +234 -0
- package/artifacts/contracts/MockUSDC.sol/artifacts.d.ts +21 -0
- package/artifacts/contracts/interfaces/IERC20.sol/IERC20.d.ts +157 -0
- package/artifacts/contracts/interfaces/IERC20.sol/IERC20.dbg.json +4 -0
- package/artifacts/contracts/interfaces/IERC20.sol/IERC20.json +107 -0
- package/artifacts/contracts/interfaces/IERC20.sol/artifacts.d.ts +21 -0
- package/dist/evm/src/evm/index.d.ts +4 -0
- package/dist/evm/src/evm/index.d.ts.map +1 -0
- package/dist/evm/src/evm/index.js +10 -0
- package/dist/evm/src/evm/index.js.map +1 -0
- package/dist/evm/src/evm/mailer-client.d.ts +966 -0
- package/dist/evm/src/evm/mailer-client.d.ts.map +1 -0
- package/dist/evm/src/evm/mailer-client.js +619 -0
- package/dist/evm/src/evm/mailer-client.js.map +1 -0
- package/dist/evm/typechain-types/Mailer.d.ts +698 -0
- package/dist/evm/typechain-types/Mailer.d.ts.map +1 -0
- package/dist/evm/typechain-types/Mailer.js +3 -0
- package/dist/evm/typechain-types/Mailer.js.map +1 -0
- package/dist/evm/typechain-types/MockUSDC.d.ts +118 -0
- package/dist/evm/typechain-types/MockUSDC.d.ts.map +1 -0
- package/dist/evm/typechain-types/MockUSDC.js +3 -0
- package/dist/evm/typechain-types/MockUSDC.js.map +1 -0
- package/dist/evm/typechain-types/common.d.ts +51 -0
- package/dist/evm/typechain-types/common.d.ts.map +1 -0
- package/dist/evm/typechain-types/common.js +3 -0
- package/dist/evm/typechain-types/common.js.map +1 -0
- package/dist/evm/typechain-types/factories/Mailer__factory.d.ts +875 -0
- package/dist/evm/typechain-types/factories/Mailer__factory.d.ts.map +1 -0
- package/dist/evm/typechain-types/factories/Mailer__factory.js +1125 -0
- package/dist/evm/typechain-types/factories/Mailer__factory.js.map +1 -0
- package/dist/evm/typechain-types/factories/MockUSDC__factory.d.ts +193 -0
- package/dist/evm/typechain-types/factories/MockUSDC__factory.d.ts.map +1 -0
- package/dist/evm/typechain-types/factories/MockUSDC__factory.js +263 -0
- package/dist/evm/typechain-types/factories/MockUSDC__factory.js.map +1 -0
- package/dist/evm/typechain-types/factories/index.d.ts +4 -0
- package/dist/evm/typechain-types/factories/index.d.ts.map +1 -0
- package/dist/evm/typechain-types/factories/index.js +45 -0
- package/dist/evm/typechain-types/factories/index.js.map +1 -0
- package/dist/evm/typechain-types/factories/interfaces/IERC20__factory.d.ts +80 -0
- package/dist/evm/typechain-types/factories/interfaces/IERC20__factory.d.ts.map +1 -0
- package/dist/evm/typechain-types/factories/interfaces/IERC20__factory.js +116 -0
- package/dist/evm/typechain-types/factories/interfaces/IERC20__factory.js.map +1 -0
- package/dist/evm/typechain-types/factories/interfaces/index.d.ts +2 -0
- package/dist/evm/typechain-types/factories/interfaces/index.d.ts.map +1 -0
- package/dist/evm/typechain-types/factories/interfaces/index.js +9 -0
- package/dist/evm/typechain-types/factories/interfaces/index.js.map +1 -0
- package/dist/evm/typechain-types/index.d.ts +10 -0
- package/dist/evm/typechain-types/index.d.ts.map +1 -0
- package/dist/evm/typechain-types/index.js +44 -0
- package/dist/evm/typechain-types/index.js.map +1 -0
- package/dist/evm/typechain-types/interfaces/IERC20.d.ts +70 -0
- package/dist/evm/typechain-types/interfaces/IERC20.d.ts.map +1 -0
- package/dist/evm/typechain-types/interfaces/IERC20.js +3 -0
- package/dist/evm/typechain-types/interfaces/IERC20.js.map +1 -0
- package/dist/evm/typechain-types/interfaces/index.d.ts +2 -0
- package/dist/evm/typechain-types/interfaces/index.d.ts.map +1 -0
- package/dist/evm/typechain-types/interfaces/index.js +3 -0
- package/dist/evm/typechain-types/interfaces/index.js.map +1 -0
- package/dist/solana/solana/index.d.ts +3 -0
- package/dist/solana/solana/index.d.ts.map +1 -0
- package/dist/solana/solana/index.js +21 -0
- package/dist/solana/solana/index.js.map +1 -0
- package/dist/solana/solana/mailer-client.d.ts +282 -0
- package/dist/solana/solana/mailer-client.d.ts.map +1 -0
- package/dist/solana/solana/mailer-client.js +989 -0
- package/dist/solana/solana/mailer-client.js.map +1 -0
- package/dist/solana/solana/types.d.ts +28 -0
- package/dist/solana/solana/types.d.ts.map +1 -0
- package/dist/solana/solana/types.js +23 -0
- package/dist/solana/solana/types.js.map +1 -0
- package/dist/solana/utils/currency.d.ts +26 -0
- package/dist/solana/utils/currency.d.ts.map +1 -0
- package/dist/solana/utils/currency.js +36 -0
- package/dist/solana/utils/currency.js.map +1 -0
- package/dist/unified/package.json +3 -0
- package/dist/unified/src/evm/index.d.ts +4 -0
- package/dist/unified/src/evm/index.d.ts.map +1 -0
- package/dist/unified/src/evm/index.js +10 -0
- package/dist/unified/src/evm/index.js.map +1 -0
- package/dist/unified/src/evm/mailer-client.d.ts +966 -0
- package/dist/unified/src/evm/mailer-client.d.ts.map +1 -0
- package/dist/unified/src/evm/mailer-client.js +619 -0
- package/dist/unified/src/evm/mailer-client.js.map +1 -0
- package/dist/unified/src/react/context/MailerProvider.d.ts +102 -0
- package/dist/unified/src/react/context/MailerProvider.d.ts.map +1 -0
- package/dist/unified/src/react/context/MailerProvider.js +160 -0
- package/dist/unified/src/react/context/MailerProvider.js.map +1 -0
- package/dist/unified/src/react/hooks/useMailerMutations.d.ts +301 -0
- package/dist/unified/src/react/hooks/useMailerMutations.d.ts.map +1 -0
- package/dist/unified/src/react/hooks/useMailerMutations.js +417 -0
- package/dist/unified/src/react/hooks/useMailerMutations.js.map +1 -0
- package/dist/unified/src/react/hooks/useMailerQueries.d.ts +130 -0
- package/dist/unified/src/react/hooks/useMailerQueries.d.ts.map +1 -0
- package/dist/unified/src/react/hooks/useMailerQueries.js +197 -0
- package/dist/unified/src/react/hooks/useMailerQueries.js.map +1 -0
- package/dist/unified/src/react/index.d.ts +37 -0
- package/dist/unified/src/react/index.d.ts.map +1 -0
- package/dist/unified/src/react/index.js +70 -0
- package/dist/unified/src/react/index.js.map +1 -0
- package/dist/unified/src/solana/index.d.ts +3 -0
- package/dist/unified/src/solana/index.d.ts.map +1 -0
- package/dist/unified/src/solana/index.js +21 -0
- package/dist/unified/src/solana/index.js.map +1 -0
- package/dist/unified/src/solana/mailer-client.d.ts +282 -0
- package/dist/unified/src/solana/mailer-client.d.ts.map +1 -0
- package/dist/unified/src/solana/mailer-client.js +989 -0
- package/dist/unified/src/solana/mailer-client.js.map +1 -0
- package/dist/unified/src/solana/types.d.ts +28 -0
- package/dist/unified/src/solana/types.d.ts.map +1 -0
- package/dist/unified/src/solana/types.js +23 -0
- package/dist/unified/src/solana/types.js.map +1 -0
- package/dist/unified/src/unified/index.d.ts +4 -0
- package/dist/unified/src/unified/index.d.ts.map +1 -0
- package/dist/unified/src/unified/index.js +9 -0
- package/dist/unified/src/unified/index.js.map +1 -0
- package/dist/unified/src/unified/onchain-mailer-client.d.ts +173 -0
- package/dist/unified/src/unified/onchain-mailer-client.d.ts.map +1 -0
- package/dist/unified/src/unified/onchain-mailer-client.js +1048 -0
- package/dist/unified/src/unified/onchain-mailer-client.js.map +1 -0
- package/dist/unified/src/unified/types.d.ts +47 -0
- package/dist/unified/src/unified/types.d.ts.map +1 -0
- package/dist/unified/src/unified/types.js +3 -0
- package/dist/unified/src/unified/types.js.map +1 -0
- package/dist/unified/src/unified/wallet-detector.d.ts +28 -0
- package/dist/unified/src/unified/wallet-detector.d.ts.map +1 -0
- package/dist/unified/src/unified/wallet-detector.js +63 -0
- package/dist/unified/src/unified/wallet-detector.js.map +1 -0
- package/dist/unified/src/utils/chain-config.d.ts +75 -0
- package/dist/unified/src/utils/chain-config.d.ts.map +1 -0
- package/dist/unified/src/utils/chain-config.js +203 -0
- package/dist/unified/src/utils/chain-config.js.map +1 -0
- package/dist/unified/src/utils/currency.d.ts +26 -0
- package/dist/unified/src/utils/currency.d.ts.map +1 -0
- package/dist/unified/src/utils/currency.js +36 -0
- package/dist/unified/src/utils/currency.js.map +1 -0
- package/dist/unified/src/utils/index.d.ts +4 -0
- package/dist/unified/src/utils/index.d.ts.map +1 -0
- package/dist/unified/src/utils/index.js +20 -0
- package/dist/unified/src/utils/index.js.map +1 -0
- package/dist/unified/src/utils/validation.d.ts +10 -0
- package/dist/unified/src/utils/validation.d.ts.map +1 -0
- package/dist/unified/src/utils/validation.js +102 -0
- package/dist/unified/src/utils/validation.js.map +1 -0
- package/dist/unified/typechain-types/Mailer.d.ts +698 -0
- package/dist/unified/typechain-types/Mailer.d.ts.map +1 -0
- package/dist/unified/typechain-types/Mailer.js +3 -0
- package/dist/unified/typechain-types/Mailer.js.map +1 -0
- package/dist/unified/typechain-types/MockUSDC.d.ts +118 -0
- package/dist/unified/typechain-types/MockUSDC.d.ts.map +1 -0
- package/dist/unified/typechain-types/MockUSDC.js +3 -0
- package/dist/unified/typechain-types/MockUSDC.js.map +1 -0
- package/dist/unified/typechain-types/common.d.ts +51 -0
- package/dist/unified/typechain-types/common.d.ts.map +1 -0
- package/dist/unified/typechain-types/common.js +3 -0
- package/dist/unified/typechain-types/common.js.map +1 -0
- package/dist/unified/typechain-types/factories/Mailer__factory.d.ts +875 -0
- package/dist/unified/typechain-types/factories/Mailer__factory.d.ts.map +1 -0
- package/dist/unified/typechain-types/factories/Mailer__factory.js +1125 -0
- package/dist/unified/typechain-types/factories/Mailer__factory.js.map +1 -0
- package/dist/unified/typechain-types/factories/MockUSDC__factory.d.ts +193 -0
- package/dist/unified/typechain-types/factories/MockUSDC__factory.d.ts.map +1 -0
- package/dist/unified/typechain-types/factories/MockUSDC__factory.js +263 -0
- package/dist/unified/typechain-types/factories/MockUSDC__factory.js.map +1 -0
- package/dist/unified/typechain-types/factories/index.d.ts +4 -0
- package/dist/unified/typechain-types/factories/index.d.ts.map +1 -0
- package/dist/unified/typechain-types/factories/index.js +45 -0
- package/dist/unified/typechain-types/factories/index.js.map +1 -0
- package/dist/unified/typechain-types/factories/interfaces/IERC20__factory.d.ts +80 -0
- package/dist/unified/typechain-types/factories/interfaces/IERC20__factory.d.ts.map +1 -0
- package/dist/unified/typechain-types/factories/interfaces/IERC20__factory.js +116 -0
- package/dist/unified/typechain-types/factories/interfaces/IERC20__factory.js.map +1 -0
- package/dist/unified/typechain-types/factories/interfaces/index.d.ts +2 -0
- package/dist/unified/typechain-types/factories/interfaces/index.d.ts.map +1 -0
- package/dist/unified/typechain-types/factories/interfaces/index.js +9 -0
- package/dist/unified/typechain-types/factories/interfaces/index.js.map +1 -0
- package/dist/unified/typechain-types/index.d.ts +10 -0
- package/dist/unified/typechain-types/index.d.ts.map +1 -0
- package/dist/unified/typechain-types/index.js +44 -0
- package/dist/unified/typechain-types/index.js.map +1 -0
- package/dist/unified/typechain-types/interfaces/IERC20.d.ts +70 -0
- package/dist/unified/typechain-types/interfaces/IERC20.d.ts.map +1 -0
- package/dist/unified/typechain-types/interfaces/IERC20.js +3 -0
- package/dist/unified/typechain-types/interfaces/IERC20.js.map +1 -0
- package/dist/unified/typechain-types/interfaces/index.d.ts +2 -0
- package/dist/unified/typechain-types/interfaces/index.d.ts.map +1 -0
- package/dist/unified/typechain-types/interfaces/index.js +3 -0
- package/dist/unified/typechain-types/interfaces/index.js.map +1 -0
- package/dist/unified-esm/src/evm/index.d.ts +4 -0
- package/dist/unified-esm/src/evm/index.d.ts.map +1 -0
- package/dist/unified-esm/src/evm/index.js +5 -0
- package/dist/unified-esm/src/evm/index.js.map +1 -0
- package/dist/unified-esm/src/evm/mailer-client.d.ts +966 -0
- package/dist/unified-esm/src/evm/mailer-client.d.ts.map +1 -0
- package/dist/unified-esm/src/evm/mailer-client.js +615 -0
- package/dist/unified-esm/src/evm/mailer-client.js.map +1 -0
- package/dist/unified-esm/src/react/context/MailerProvider.d.ts +102 -0
- package/dist/unified-esm/src/react/context/MailerProvider.d.ts.map +1 -0
- package/dist/unified-esm/src/react/context/MailerProvider.js +120 -0
- package/dist/unified-esm/src/react/context/MailerProvider.js.map +1 -0
- package/dist/unified-esm/src/react/hooks/useMailerMutations.d.ts +301 -0
- package/dist/unified-esm/src/react/hooks/useMailerMutations.d.ts.map +1 -0
- package/dist/unified-esm/src/react/hooks/useMailerMutations.js +400 -0
- package/dist/unified-esm/src/react/hooks/useMailerMutations.js.map +1 -0
- package/dist/unified-esm/src/react/hooks/useMailerQueries.d.ts +130 -0
- package/dist/unified-esm/src/react/hooks/useMailerQueries.d.ts.map +1 -0
- package/dist/unified-esm/src/react/hooks/useMailerQueries.js +186 -0
- package/dist/unified-esm/src/react/hooks/useMailerQueries.js.map +1 -0
- package/dist/unified-esm/src/react/index.d.ts +37 -0
- package/dist/unified-esm/src/react/index.d.ts.map +1 -0
- package/dist/unified-esm/src/react/index.js +39 -0
- package/dist/unified-esm/src/react/index.js.map +1 -0
- package/dist/unified-esm/src/solana/index.d.ts +3 -0
- package/dist/unified-esm/src/solana/index.d.ts.map +1 -0
- package/dist/unified-esm/src/solana/index.js +3 -0
- package/dist/unified-esm/src/solana/index.js.map +1 -0
- package/dist/unified-esm/src/solana/mailer-client.d.ts +282 -0
- package/dist/unified-esm/src/solana/mailer-client.d.ts.map +1 -0
- package/dist/unified-esm/src/solana/mailer-client.js +985 -0
- package/dist/unified-esm/src/solana/mailer-client.js.map +1 -0
- package/dist/unified-esm/src/solana/types.d.ts +28 -0
- package/dist/unified-esm/src/solana/types.d.ts.map +1 -0
- package/dist/unified-esm/src/solana/types.js +16 -0
- package/dist/unified-esm/src/solana/types.js.map +1 -0
- package/dist/unified-esm/src/unified/index.d.ts +4 -0
- package/dist/unified-esm/src/unified/index.d.ts.map +1 -0
- package/dist/unified-esm/src/unified/index.js +4 -0
- package/dist/unified-esm/src/unified/index.js.map +1 -0
- package/dist/unified-esm/src/unified/onchain-mailer-client.d.ts +173 -0
- package/dist/unified-esm/src/unified/onchain-mailer-client.d.ts.map +1 -0
- package/dist/unified-esm/src/unified/onchain-mailer-client.js +1011 -0
- package/dist/unified-esm/src/unified/onchain-mailer-client.js.map +1 -0
- package/dist/unified-esm/src/unified/types.d.ts +47 -0
- package/dist/unified-esm/src/unified/types.d.ts.map +1 -0
- package/dist/unified-esm/src/unified/types.js +2 -0
- package/dist/unified-esm/src/unified/types.js.map +1 -0
- package/dist/unified-esm/src/unified/wallet-detector.d.ts +28 -0
- package/dist/unified-esm/src/unified/wallet-detector.d.ts.map +1 -0
- package/dist/unified-esm/src/unified/wallet-detector.js +59 -0
- package/dist/unified-esm/src/unified/wallet-detector.js.map +1 -0
- package/dist/unified-esm/src/utils/chain-config.d.ts +75 -0
- package/dist/unified-esm/src/utils/chain-config.d.ts.map +1 -0
- package/dist/unified-esm/src/utils/chain-config.js +199 -0
- package/dist/unified-esm/src/utils/chain-config.js.map +1 -0
- package/dist/unified-esm/src/utils/currency.d.ts +26 -0
- package/dist/unified-esm/src/utils/currency.d.ts.map +1 -0
- package/dist/unified-esm/src/utils/currency.js +31 -0
- package/dist/unified-esm/src/utils/currency.js.map +1 -0
- package/dist/unified-esm/src/utils/index.d.ts +4 -0
- package/dist/unified-esm/src/utils/index.d.ts.map +1 -0
- package/dist/unified-esm/src/utils/index.js +4 -0
- package/dist/unified-esm/src/utils/index.js.map +1 -0
- package/dist/unified-esm/src/utils/validation.d.ts +10 -0
- package/dist/unified-esm/src/utils/validation.d.ts.map +1 -0
- package/dist/unified-esm/src/utils/validation.js +96 -0
- package/dist/unified-esm/src/utils/validation.js.map +1 -0
- package/dist/unified-esm/typechain-types/Mailer.d.ts +698 -0
- package/dist/unified-esm/typechain-types/Mailer.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/Mailer.js +2 -0
- package/dist/unified-esm/typechain-types/Mailer.js.map +1 -0
- package/dist/unified-esm/typechain-types/MockUSDC.d.ts +118 -0
- package/dist/unified-esm/typechain-types/MockUSDC.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/MockUSDC.js +2 -0
- package/dist/unified-esm/typechain-types/MockUSDC.js.map +1 -0
- package/dist/unified-esm/typechain-types/common.d.ts +51 -0
- package/dist/unified-esm/typechain-types/common.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/common.js +2 -0
- package/dist/unified-esm/typechain-types/common.js.map +1 -0
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.d.ts +875 -0
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.js +1121 -0
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.js.map +1 -0
- package/dist/unified-esm/typechain-types/factories/MockUSDC__factory.d.ts +193 -0
- package/dist/unified-esm/typechain-types/factories/MockUSDC__factory.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/factories/MockUSDC__factory.js +259 -0
- package/dist/unified-esm/typechain-types/factories/MockUSDC__factory.js.map +1 -0
- package/dist/unified-esm/typechain-types/factories/index.d.ts +4 -0
- package/dist/unified-esm/typechain-types/factories/index.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/factories/index.js +7 -0
- package/dist/unified-esm/typechain-types/factories/index.js.map +1 -0
- package/dist/unified-esm/typechain-types/factories/interfaces/IERC20__factory.d.ts +80 -0
- package/dist/unified-esm/typechain-types/factories/interfaces/IERC20__factory.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/factories/interfaces/IERC20__factory.js +112 -0
- package/dist/unified-esm/typechain-types/factories/interfaces/IERC20__factory.js.map +1 -0
- package/dist/unified-esm/typechain-types/factories/interfaces/index.d.ts +2 -0
- package/dist/unified-esm/typechain-types/factories/interfaces/index.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/factories/interfaces/index.js +5 -0
- package/dist/unified-esm/typechain-types/factories/interfaces/index.js.map +1 -0
- package/dist/unified-esm/typechain-types/index.d.ts +10 -0
- package/dist/unified-esm/typechain-types/index.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/index.js +5 -0
- package/dist/unified-esm/typechain-types/index.js.map +1 -0
- package/dist/unified-esm/typechain-types/interfaces/IERC20.d.ts +70 -0
- package/dist/unified-esm/typechain-types/interfaces/IERC20.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/interfaces/IERC20.js +2 -0
- package/dist/unified-esm/typechain-types/interfaces/IERC20.js.map +1 -0
- package/dist/unified-esm/typechain-types/interfaces/index.d.ts +2 -0
- package/dist/unified-esm/typechain-types/interfaces/index.d.ts.map +1 -0
- package/dist/unified-esm/typechain-types/interfaces/index.js +2 -0
- package/dist/unified-esm/typechain-types/interfaces/index.js.map +1 -0
- package/package.json +250 -0
- package/programs/mailer/Cargo.toml +29 -0
- package/programs/mailer/src/lib.rs +2034 -0
- package/programs/mailer/tests/integration_tests.rs +1236 -0
- package/typechain-types/Mailer.ts +1393 -0
- package/typechain-types/MockUSDC.ts +236 -0
- package/typechain-types/common.ts +131 -0
- package/typechain-types/factories/Mailer__factory.ts +1157 -0
- package/typechain-types/factories/MockUSDC__factory.ts +284 -0
- package/typechain-types/factories/index.ts +6 -0
- package/typechain-types/factories/interfaces/IERC20__factory.ts +115 -0
- package/typechain-types/factories/interfaces/index.ts +4 -0
- package/typechain-types/hardhat.d.ts +99 -0
- package/typechain-types/index.ts +12 -0
- package/typechain-types/interfaces/IERC20.ts +148 -0
- package/typechain-types/interfaces/index.ts +4 -0
|
@@ -0,0 +1,284 @@
|
|
|
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 { MockUSDC, MockUSDCInterface } from "../MockUSDC";
|
|
13
|
+
|
|
14
|
+
const _abi = [
|
|
15
|
+
{
|
|
16
|
+
inputs: [],
|
|
17
|
+
stateMutability: "nonpayable",
|
|
18
|
+
type: "constructor",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
inputs: [],
|
|
22
|
+
name: "InsufficientAllowance",
|
|
23
|
+
type: "error",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
inputs: [],
|
|
27
|
+
name: "InsufficientBalance",
|
|
28
|
+
type: "error",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
inputs: [],
|
|
32
|
+
name: "OnlyOwner",
|
|
33
|
+
type: "error",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
internalType: "address",
|
|
39
|
+
name: "",
|
|
40
|
+
type: "address",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
internalType: "address",
|
|
44
|
+
name: "",
|
|
45
|
+
type: "address",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
name: "allowance",
|
|
49
|
+
outputs: [
|
|
50
|
+
{
|
|
51
|
+
internalType: "uint256",
|
|
52
|
+
name: "",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
stateMutability: "view",
|
|
57
|
+
type: "function",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [
|
|
61
|
+
{
|
|
62
|
+
internalType: "address",
|
|
63
|
+
name: "spender",
|
|
64
|
+
type: "address",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
internalType: "uint256",
|
|
68
|
+
name: "amount",
|
|
69
|
+
type: "uint256",
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
name: "approve",
|
|
73
|
+
outputs: [
|
|
74
|
+
{
|
|
75
|
+
internalType: "bool",
|
|
76
|
+
name: "",
|
|
77
|
+
type: "bool",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
stateMutability: "nonpayable",
|
|
81
|
+
type: "function",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
inputs: [
|
|
85
|
+
{
|
|
86
|
+
internalType: "address",
|
|
87
|
+
name: "",
|
|
88
|
+
type: "address",
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
name: "balanceOf",
|
|
92
|
+
outputs: [
|
|
93
|
+
{
|
|
94
|
+
internalType: "uint256",
|
|
95
|
+
name: "",
|
|
96
|
+
type: "uint256",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
stateMutability: "view",
|
|
100
|
+
type: "function",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
inputs: [],
|
|
104
|
+
name: "decimals",
|
|
105
|
+
outputs: [
|
|
106
|
+
{
|
|
107
|
+
internalType: "uint8",
|
|
108
|
+
name: "",
|
|
109
|
+
type: "uint8",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
stateMutability: "view",
|
|
113
|
+
type: "function",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
inputs: [
|
|
117
|
+
{
|
|
118
|
+
internalType: "address",
|
|
119
|
+
name: "to",
|
|
120
|
+
type: "address",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
internalType: "uint256",
|
|
124
|
+
name: "amount",
|
|
125
|
+
type: "uint256",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
name: "mint",
|
|
129
|
+
outputs: [],
|
|
130
|
+
stateMutability: "nonpayable",
|
|
131
|
+
type: "function",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
inputs: [],
|
|
135
|
+
name: "name",
|
|
136
|
+
outputs: [
|
|
137
|
+
{
|
|
138
|
+
internalType: "string",
|
|
139
|
+
name: "",
|
|
140
|
+
type: "string",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
stateMutability: "view",
|
|
144
|
+
type: "function",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
inputs: [],
|
|
148
|
+
name: "owner",
|
|
149
|
+
outputs: [
|
|
150
|
+
{
|
|
151
|
+
internalType: "address",
|
|
152
|
+
name: "",
|
|
153
|
+
type: "address",
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
stateMutability: "view",
|
|
157
|
+
type: "function",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
inputs: [],
|
|
161
|
+
name: "symbol",
|
|
162
|
+
outputs: [
|
|
163
|
+
{
|
|
164
|
+
internalType: "string",
|
|
165
|
+
name: "",
|
|
166
|
+
type: "string",
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
stateMutability: "view",
|
|
170
|
+
type: "function",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
inputs: [],
|
|
174
|
+
name: "totalSupply",
|
|
175
|
+
outputs: [
|
|
176
|
+
{
|
|
177
|
+
internalType: "uint256",
|
|
178
|
+
name: "",
|
|
179
|
+
type: "uint256",
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
stateMutability: "view",
|
|
183
|
+
type: "function",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
inputs: [
|
|
187
|
+
{
|
|
188
|
+
internalType: "address",
|
|
189
|
+
name: "to",
|
|
190
|
+
type: "address",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "amount",
|
|
195
|
+
type: "uint256",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
name: "transfer",
|
|
199
|
+
outputs: [
|
|
200
|
+
{
|
|
201
|
+
internalType: "bool",
|
|
202
|
+
name: "",
|
|
203
|
+
type: "bool",
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
stateMutability: "nonpayable",
|
|
207
|
+
type: "function",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
inputs: [
|
|
211
|
+
{
|
|
212
|
+
internalType: "address",
|
|
213
|
+
name: "from",
|
|
214
|
+
type: "address",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
internalType: "address",
|
|
218
|
+
name: "to",
|
|
219
|
+
type: "address",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
internalType: "uint256",
|
|
223
|
+
name: "amount",
|
|
224
|
+
type: "uint256",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
name: "transferFrom",
|
|
228
|
+
outputs: [
|
|
229
|
+
{
|
|
230
|
+
internalType: "bool",
|
|
231
|
+
name: "",
|
|
232
|
+
type: "bool",
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
stateMutability: "nonpayable",
|
|
236
|
+
type: "function",
|
|
237
|
+
},
|
|
238
|
+
] as const;
|
|
239
|
+
|
|
240
|
+
const _bytecode =
|
|
241
|
+
"0x60e0604052600960a0908152684d6f636b205553444360b81b60c0526002906100289082610134565b506040805180820190915260048152635553444360e01b60208201526003906100519082610134565b506004805460ff1916600617905564e8d4a5100060055534801561007457600080fd5b50336080819052600554600091825260208290526040909120556101f3565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806100bd57607f821691505b6020821081036100dd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561012f576000816000526020600020601f850160051c8101602086101561010c5750805b601f850160051c820191505b8181101561012b57828155600101610118565b5050505b505050565b81516001600160401b0381111561014d5761014d610093565b6101618161015b84546100a9565b846100e3565b602080601f831160018114610196576000841561017e5750858301515b600019600386901b1c1916600185901b17855561012b565b600085815260208120601f198616915b828110156101c5578886015182559484019460019091019084016101a6565b50858210156101e35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516106c36102156000396000818161017201526103d201526106c36000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806340c10f191161007157806340c10f191461013857806370a082311461014d5780638da5cb5b1461016d57806395d89b41146101ac578063a9059cbb146101b4578063dd62ed3e146101c757600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610106578063313ce56714610119575b600080fd5b6100b66101f2565b6040516100c391906104f1565b60405180910390f35b6100df6100da36600461055c565b610280565b60405190151581526020016100c3565b6100f860055481565b6040519081526020016100c3565b6100df610114366004610586565b6102ae565b6004546101269060ff1681565b60405160ff90911681526020016100c3565b61014b61014636600461055c565b6103c7565b005b6100f861015b3660046105c2565b60006020819052908152604090205481565b6101947f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100c3565b6100b661045a565b6100df6101c236600461055c565b610467565b6100f86101d53660046105e4565b600160209081526000928352604080842090915290825290205481565b600280546101ff90610617565b80601f016020809104026020016040519081016040528092919081815260200182805461022b90610617565b80156102785780601f1061024d57610100808354040283529160200191610278565b820191906000526020600020905b81548152906001019060200180831161025b57829003601f168201915b505050505081565b3360009081526001602081815260408084206001600160a01b03871685529091529091208290555b92915050565b6001600160a01b0383166000908152602081905260408120548211156102e757604051631e9acf1760e31b815260040160405180910390fd5b6001600160a01b038416600090815260016020908152604080832033845290915290205482111561032b576040516313be252b60e01b815260040160405180910390fd5b6001600160a01b03841660009081526020819052604081208054849290610353908490610667565b90915550506001600160a01b0383166000908152602081905260408120805484929061038090849061067a565b90915550506001600160a01b0384166000908152600160209081526040808320338452909152812080548492906103b8908490610667565b90915550600195945050505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461041057604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b0382166000908152602081905260408120805483929061043890849061067a565b925050819055508060056000828254610451919061067a565b90915550505050565b600380546101ff90610617565b3360009081526020819052604081205482111561049757604051631e9acf1760e31b815260040160405180910390fd5b33600090815260208190526040812080548492906104b6908490610667565b90915550506001600160a01b038316600090815260208190526040812080548492906104e390849061067a565b909155506001949350505050565b60006020808352835180602085015260005b8181101561051f57858101830151858201604001528201610503565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461055757600080fd5b919050565b6000806040838503121561056f57600080fd5b61057883610540565b946020939093013593505050565b60008060006060848603121561059b57600080fd5b6105a484610540565b92506105b260208501610540565b9150604084013590509250925092565b6000602082840312156105d457600080fd5b6105dd82610540565b9392505050565b600080604083850312156105f757600080fd5b61060083610540565b915061060e60208401610540565b90509250929050565b600181811c9082168061062b57607f821691505b60208210810361064b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102a8576102a8610651565b808201808211156102a8576102a861065156fea2646970667358221220db58c45fd5c85446164b9beeace5a427c6e533e629016581b36a58740b82509864736f6c63430008180033";
|
|
242
|
+
|
|
243
|
+
type MockUSDCConstructorParams =
|
|
244
|
+
| [signer?: Signer]
|
|
245
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
246
|
+
|
|
247
|
+
const isSuperArgs = (
|
|
248
|
+
xs: MockUSDCConstructorParams
|
|
249
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
250
|
+
|
|
251
|
+
export class MockUSDC__factory extends ContractFactory {
|
|
252
|
+
constructor(...args: MockUSDCConstructorParams) {
|
|
253
|
+
if (isSuperArgs(args)) {
|
|
254
|
+
super(...args);
|
|
255
|
+
} else {
|
|
256
|
+
super(_abi, _bytecode, args[0]);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
override getDeployTransaction(
|
|
261
|
+
overrides?: NonPayableOverrides & { from?: string }
|
|
262
|
+
): Promise<ContractDeployTransaction> {
|
|
263
|
+
return super.getDeployTransaction(overrides || {});
|
|
264
|
+
}
|
|
265
|
+
override deploy(overrides?: NonPayableOverrides & { from?: string }) {
|
|
266
|
+
return super.deploy(overrides || {}) as Promise<
|
|
267
|
+
MockUSDC & {
|
|
268
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
269
|
+
}
|
|
270
|
+
>;
|
|
271
|
+
}
|
|
272
|
+
override connect(runner: ContractRunner | null): MockUSDC__factory {
|
|
273
|
+
return super.connect(runner) as MockUSDC__factory;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
static readonly bytecode = _bytecode;
|
|
277
|
+
static readonly abi = _abi;
|
|
278
|
+
static createInterface(): MockUSDCInterface {
|
|
279
|
+
return new Interface(_abi) as MockUSDCInterface;
|
|
280
|
+
}
|
|
281
|
+
static connect(address: string, runner?: ContractRunner | null): MockUSDC {
|
|
282
|
+
return new Contract(address, _abi, runner) as unknown as MockUSDC;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Interface, type ContractRunner } from "ethers";
|
|
6
|
+
import type { IERC20, IERC20Interface } from "../../interfaces/IERC20";
|
|
7
|
+
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "spender",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "uint256",
|
|
18
|
+
name: "amount",
|
|
19
|
+
type: "uint256",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
name: "approve",
|
|
23
|
+
outputs: [
|
|
24
|
+
{
|
|
25
|
+
internalType: "bool",
|
|
26
|
+
name: "",
|
|
27
|
+
type: "bool",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
stateMutability: "nonpayable",
|
|
31
|
+
type: "function",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
internalType: "address",
|
|
37
|
+
name: "account",
|
|
38
|
+
type: "address",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "balanceOf",
|
|
42
|
+
outputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "uint256",
|
|
45
|
+
name: "",
|
|
46
|
+
type: "uint256",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
stateMutability: "view",
|
|
50
|
+
type: "function",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
inputs: [
|
|
54
|
+
{
|
|
55
|
+
internalType: "address",
|
|
56
|
+
name: "to",
|
|
57
|
+
type: "address",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
internalType: "uint256",
|
|
61
|
+
name: "amount",
|
|
62
|
+
type: "uint256",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
name: "transfer",
|
|
66
|
+
outputs: [
|
|
67
|
+
{
|
|
68
|
+
internalType: "bool",
|
|
69
|
+
name: "",
|
|
70
|
+
type: "bool",
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
stateMutability: "nonpayable",
|
|
74
|
+
type: "function",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
inputs: [
|
|
78
|
+
{
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "from",
|
|
81
|
+
type: "address",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
internalType: "address",
|
|
85
|
+
name: "to",
|
|
86
|
+
type: "address",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
internalType: "uint256",
|
|
90
|
+
name: "amount",
|
|
91
|
+
type: "uint256",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
name: "transferFrom",
|
|
95
|
+
outputs: [
|
|
96
|
+
{
|
|
97
|
+
internalType: "bool",
|
|
98
|
+
name: "",
|
|
99
|
+
type: "bool",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "nonpayable",
|
|
103
|
+
type: "function",
|
|
104
|
+
},
|
|
105
|
+
] as const;
|
|
106
|
+
|
|
107
|
+
export class IERC20__factory {
|
|
108
|
+
static readonly abi = _abi;
|
|
109
|
+
static createInterface(): IERC20Interface {
|
|
110
|
+
return new Interface(_abi) as IERC20Interface;
|
|
111
|
+
}
|
|
112
|
+
static connect(address: string, runner?: ContractRunner | null): IERC20 {
|
|
113
|
+
return new Contract(address, _abi, runner) as unknown as IERC20;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { ethers } from "ethers";
|
|
6
|
+
import {
|
|
7
|
+
DeployContractOptions,
|
|
8
|
+
FactoryOptions,
|
|
9
|
+
HardhatEthersHelpers as HardhatEthersHelpersBase,
|
|
10
|
+
} from "@nomicfoundation/hardhat-ethers/types";
|
|
11
|
+
|
|
12
|
+
import * as Contracts from ".";
|
|
13
|
+
|
|
14
|
+
declare module "hardhat/types/runtime" {
|
|
15
|
+
interface HardhatEthersHelpers extends HardhatEthersHelpersBase {
|
|
16
|
+
getContractFactory(
|
|
17
|
+
name: "IERC20",
|
|
18
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
19
|
+
): Promise<Contracts.IERC20__factory>;
|
|
20
|
+
getContractFactory(
|
|
21
|
+
name: "Mailer",
|
|
22
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
23
|
+
): Promise<Contracts.Mailer__factory>;
|
|
24
|
+
getContractFactory(
|
|
25
|
+
name: "MockUSDC",
|
|
26
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
27
|
+
): Promise<Contracts.MockUSDC__factory>;
|
|
28
|
+
|
|
29
|
+
getContractAt(
|
|
30
|
+
name: "IERC20",
|
|
31
|
+
address: string | ethers.Addressable,
|
|
32
|
+
signer?: ethers.Signer
|
|
33
|
+
): Promise<Contracts.IERC20>;
|
|
34
|
+
getContractAt(
|
|
35
|
+
name: "Mailer",
|
|
36
|
+
address: string | ethers.Addressable,
|
|
37
|
+
signer?: ethers.Signer
|
|
38
|
+
): Promise<Contracts.Mailer>;
|
|
39
|
+
getContractAt(
|
|
40
|
+
name: "MockUSDC",
|
|
41
|
+
address: string | ethers.Addressable,
|
|
42
|
+
signer?: ethers.Signer
|
|
43
|
+
): Promise<Contracts.MockUSDC>;
|
|
44
|
+
|
|
45
|
+
deployContract(
|
|
46
|
+
name: "IERC20",
|
|
47
|
+
signerOrOptions?: ethers.Signer | DeployContractOptions
|
|
48
|
+
): Promise<Contracts.IERC20>;
|
|
49
|
+
deployContract(
|
|
50
|
+
name: "Mailer",
|
|
51
|
+
signerOrOptions?: ethers.Signer | DeployContractOptions
|
|
52
|
+
): Promise<Contracts.Mailer>;
|
|
53
|
+
deployContract(
|
|
54
|
+
name: "MockUSDC",
|
|
55
|
+
signerOrOptions?: ethers.Signer | DeployContractOptions
|
|
56
|
+
): Promise<Contracts.MockUSDC>;
|
|
57
|
+
|
|
58
|
+
deployContract(
|
|
59
|
+
name: "IERC20",
|
|
60
|
+
args: any[],
|
|
61
|
+
signerOrOptions?: ethers.Signer | DeployContractOptions
|
|
62
|
+
): Promise<Contracts.IERC20>;
|
|
63
|
+
deployContract(
|
|
64
|
+
name: "Mailer",
|
|
65
|
+
args: any[],
|
|
66
|
+
signerOrOptions?: ethers.Signer | DeployContractOptions
|
|
67
|
+
): Promise<Contracts.Mailer>;
|
|
68
|
+
deployContract(
|
|
69
|
+
name: "MockUSDC",
|
|
70
|
+
args: any[],
|
|
71
|
+
signerOrOptions?: ethers.Signer | DeployContractOptions
|
|
72
|
+
): Promise<Contracts.MockUSDC>;
|
|
73
|
+
|
|
74
|
+
// default types
|
|
75
|
+
getContractFactory(
|
|
76
|
+
name: string,
|
|
77
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
78
|
+
): Promise<ethers.ContractFactory>;
|
|
79
|
+
getContractFactory(
|
|
80
|
+
abi: any[],
|
|
81
|
+
bytecode: ethers.BytesLike,
|
|
82
|
+
signer?: ethers.Signer
|
|
83
|
+
): Promise<ethers.ContractFactory>;
|
|
84
|
+
getContractAt(
|
|
85
|
+
nameOrAbi: string | any[],
|
|
86
|
+
address: string | ethers.Addressable,
|
|
87
|
+
signer?: ethers.Signer
|
|
88
|
+
): Promise<ethers.Contract>;
|
|
89
|
+
deployContract(
|
|
90
|
+
name: string,
|
|
91
|
+
signerOrOptions?: ethers.Signer | DeployContractOptions
|
|
92
|
+
): Promise<ethers.Contract>;
|
|
93
|
+
deployContract(
|
|
94
|
+
name: string,
|
|
95
|
+
args: any[],
|
|
96
|
+
signerOrOptions?: ethers.Signer | DeployContractOptions
|
|
97
|
+
): Promise<ethers.Contract>;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type * as interfaces from "./interfaces";
|
|
5
|
+
export type { interfaces };
|
|
6
|
+
export type { Mailer } from "./Mailer";
|
|
7
|
+
export type { MockUSDC } from "./MockUSDC";
|
|
8
|
+
export * as factories from "./factories";
|
|
9
|
+
export type { IERC20 } from "./interfaces/IERC20";
|
|
10
|
+
export { IERC20__factory } from "./factories/interfaces/IERC20__factory";
|
|
11
|
+
export { Mailer__factory } from "./factories/Mailer__factory";
|
|
12
|
+
export { MockUSDC__factory } from "./factories/MockUSDC__factory";
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
BytesLike,
|
|
8
|
+
FunctionFragment,
|
|
9
|
+
Result,
|
|
10
|
+
Interface,
|
|
11
|
+
AddressLike,
|
|
12
|
+
ContractRunner,
|
|
13
|
+
ContractMethod,
|
|
14
|
+
Listener,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import type {
|
|
17
|
+
TypedContractEvent,
|
|
18
|
+
TypedDeferredTopicFilter,
|
|
19
|
+
TypedEventLog,
|
|
20
|
+
TypedListener,
|
|
21
|
+
TypedContractMethod,
|
|
22
|
+
} from "../common";
|
|
23
|
+
|
|
24
|
+
export interface IERC20Interface extends Interface {
|
|
25
|
+
getFunction(
|
|
26
|
+
nameOrSignature: "approve" | "balanceOf" | "transfer" | "transferFrom"
|
|
27
|
+
): FunctionFragment;
|
|
28
|
+
|
|
29
|
+
encodeFunctionData(
|
|
30
|
+
functionFragment: "approve",
|
|
31
|
+
values: [AddressLike, BigNumberish]
|
|
32
|
+
): string;
|
|
33
|
+
encodeFunctionData(
|
|
34
|
+
functionFragment: "balanceOf",
|
|
35
|
+
values: [AddressLike]
|
|
36
|
+
): string;
|
|
37
|
+
encodeFunctionData(
|
|
38
|
+
functionFragment: "transfer",
|
|
39
|
+
values: [AddressLike, BigNumberish]
|
|
40
|
+
): string;
|
|
41
|
+
encodeFunctionData(
|
|
42
|
+
functionFragment: "transferFrom",
|
|
43
|
+
values: [AddressLike, AddressLike, BigNumberish]
|
|
44
|
+
): string;
|
|
45
|
+
|
|
46
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
48
|
+
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
|
|
49
|
+
decodeFunctionResult(
|
|
50
|
+
functionFragment: "transferFrom",
|
|
51
|
+
data: BytesLike
|
|
52
|
+
): Result;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface IERC20 extends BaseContract {
|
|
56
|
+
connect(runner?: ContractRunner | null): IERC20;
|
|
57
|
+
waitForDeployment(): Promise<this>;
|
|
58
|
+
|
|
59
|
+
interface: IERC20Interface;
|
|
60
|
+
|
|
61
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
62
|
+
event: TCEvent,
|
|
63
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
64
|
+
toBlock?: string | number | undefined
|
|
65
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
66
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
67
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
68
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
69
|
+
toBlock?: string | number | undefined
|
|
70
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
71
|
+
|
|
72
|
+
on<TCEvent extends TypedContractEvent>(
|
|
73
|
+
event: TCEvent,
|
|
74
|
+
listener: TypedListener<TCEvent>
|
|
75
|
+
): Promise<this>;
|
|
76
|
+
on<TCEvent extends TypedContractEvent>(
|
|
77
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
78
|
+
listener: TypedListener<TCEvent>
|
|
79
|
+
): Promise<this>;
|
|
80
|
+
|
|
81
|
+
once<TCEvent extends TypedContractEvent>(
|
|
82
|
+
event: TCEvent,
|
|
83
|
+
listener: TypedListener<TCEvent>
|
|
84
|
+
): Promise<this>;
|
|
85
|
+
once<TCEvent extends TypedContractEvent>(
|
|
86
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
87
|
+
listener: TypedListener<TCEvent>
|
|
88
|
+
): Promise<this>;
|
|
89
|
+
|
|
90
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
91
|
+
event: TCEvent
|
|
92
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
93
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
94
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
95
|
+
event?: TCEvent
|
|
96
|
+
): Promise<this>;
|
|
97
|
+
|
|
98
|
+
approve: TypedContractMethod<
|
|
99
|
+
[spender: AddressLike, amount: BigNumberish],
|
|
100
|
+
[boolean],
|
|
101
|
+
"nonpayable"
|
|
102
|
+
>;
|
|
103
|
+
|
|
104
|
+
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
105
|
+
|
|
106
|
+
transfer: TypedContractMethod<
|
|
107
|
+
[to: AddressLike, amount: BigNumberish],
|
|
108
|
+
[boolean],
|
|
109
|
+
"nonpayable"
|
|
110
|
+
>;
|
|
111
|
+
|
|
112
|
+
transferFrom: TypedContractMethod<
|
|
113
|
+
[from: AddressLike, to: AddressLike, amount: BigNumberish],
|
|
114
|
+
[boolean],
|
|
115
|
+
"nonpayable"
|
|
116
|
+
>;
|
|
117
|
+
|
|
118
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
119
|
+
key: string | FunctionFragment
|
|
120
|
+
): T;
|
|
121
|
+
|
|
122
|
+
getFunction(
|
|
123
|
+
nameOrSignature: "approve"
|
|
124
|
+
): TypedContractMethod<
|
|
125
|
+
[spender: AddressLike, amount: BigNumberish],
|
|
126
|
+
[boolean],
|
|
127
|
+
"nonpayable"
|
|
128
|
+
>;
|
|
129
|
+
getFunction(
|
|
130
|
+
nameOrSignature: "balanceOf"
|
|
131
|
+
): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
132
|
+
getFunction(
|
|
133
|
+
nameOrSignature: "transfer"
|
|
134
|
+
): TypedContractMethod<
|
|
135
|
+
[to: AddressLike, amount: BigNumberish],
|
|
136
|
+
[boolean],
|
|
137
|
+
"nonpayable"
|
|
138
|
+
>;
|
|
139
|
+
getFunction(
|
|
140
|
+
nameOrSignature: "transferFrom"
|
|
141
|
+
): TypedContractMethod<
|
|
142
|
+
[from: AddressLike, to: AddressLike, amount: BigNumberish],
|
|
143
|
+
[boolean],
|
|
144
|
+
"nonpayable"
|
|
145
|
+
>;
|
|
146
|
+
|
|
147
|
+
filters: {};
|
|
148
|
+
}
|