@coti-io/coti-contracts 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/.github/workflows/npm-publish.yml +2 -1
  2. package/CONTRIBUTING.md +2 -2
  3. package/LICENSE +1 -1
  4. package/README.md +18 -35
  5. package/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol +152 -0
  6. package/contracts/mocks/utils/mpc/BitwiseTestsContract.sol +11 -1
  7. package/contracts/mocks/utils/mpc/Comparison2TestsContract.sol +8 -0
  8. package/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.sol +33 -4
  9. package/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.sol +35 -10
  10. package/contracts/mocks/utils/mpc/TransferTestsContract.sol +3 -0
  11. package/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract.sol +222 -0
  12. package/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract.sol +222 -0
  13. package/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol +223 -0
  14. package/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract.sol +222 -0
  15. package/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract.sol +265 -0
  16. package/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol +281 -0
  17. package/contracts/token/PrivateERC20/PrivateERC20.sol +1 -1
  18. package/contracts/token/PrivateERC721/IERC721Errors.sol +57 -0
  19. package/contracts/token/PrivateERC721/PrivateERC721.sol +1 -1
  20. package/hardhat.config.ts +9 -1
  21. package/package.json +20 -4
  22. package/test/token/PrivateERC20/PrivateERC20.test.ts +2 -2
  23. package/test/utils/mpc/Precompile.test.ts +16 -2
  24. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.ts +66 -0
  25. package/typechain-types/contracts/mocks/utils/mpc/BitwiseTestsContract.ts +6 -0
  26. package/typechain-types/contracts/mocks/utils/mpc/Comparison2TestsContract.ts +6 -0
  27. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.ts +36 -6
  28. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract.ts +251 -0
  29. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract.ts +250 -0
  30. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +5 -0
  31. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.ts +389 -0
  32. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract.ts +391 -0
  33. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract.ts +391 -0
  34. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract.ts +391 -0
  35. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract.ts +391 -0
  36. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +5 -0
  37. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.ts +391 -0
  38. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract.ts +391 -0
  39. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract.ts +306 -0
  40. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract.ts +125 -0
  41. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract.ts +125 -0
  42. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +5 -0
  43. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.ts +296 -0
  44. package/typechain-types/contracts/mocks/utils/mpc/index.ts +6 -0
  45. package/typechain-types/contracts/token/PrivateERC721/IERC721Errors.ts +69 -0
  46. package/typechain-types/contracts/token/PrivateERC721/index.ts +1 -0
  47. package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +1 -1
  48. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +1 -1
  49. package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
  50. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +73 -1
  51. package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +11 -1
  52. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +1 -1
  53. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +11 -1
  54. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +1 -1
  55. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +1 -1
  56. package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +1 -1
  57. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +26 -30
  58. package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
  59. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +1 -1
  60. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +1 -1
  61. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract__factory.ts +294 -0
  62. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +292 -0
  63. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +5 -0
  64. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract__factory.ts +720 -0
  65. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +724 -0
  66. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +724 -0
  67. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract__factory.ts +724 -0
  68. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract__factory.ts +724 -0
  69. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +5 -0
  70. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +724 -0
  71. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +724 -0
  72. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +507 -0
  73. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract__factory.ts +150 -0
  74. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +150 -0
  75. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +5 -0
  76. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +434 -0
  77. package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +6 -0
  78. package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +1 -1
  79. package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +1 -1
  80. package/typechain-types/factories/contracts/token/PrivateERC721/IERC721Errors__factory.ts +128 -0
  81. package/typechain-types/factories/contracts/token/PrivateERC721/index.ts +1 -0
  82. package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +1 -1
  83. package/typechain-types/hardhat.d.ts +126 -0
  84. package/typechain-types/index.ts +12 -0
  85. package/contracts/access/DataPrivacyFramework/README.md +0 -68
  86. package/contracts/token/PrivateERC20/README.md +0 -104
  87. package/contracts/token/PrivateERC721/README.md +0 -282
  88. package/contracts/utils/mpc/README.md +0 -82
@@ -0,0 +1,150 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ Contract,
6
+ ContractFactory,
7
+ ContractTransactionResponse,
8
+ Interface,
9
+ } from "ethers";
10
+ import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
11
+ import type { NonPayableOverrides } from "../../../../../../common";
12
+ import type {
13
+ TransferTestsContract,
14
+ TransferTestsContractInterface,
15
+ } from "../../../../../../contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract";
16
+
17
+ const _abi = [
18
+ {
19
+ inputs: [],
20
+ name: "getResults",
21
+ outputs: [
22
+ {
23
+ internalType: "uint8",
24
+ name: "",
25
+ type: "uint8",
26
+ },
27
+ {
28
+ internalType: "uint8",
29
+ name: "",
30
+ type: "uint8",
31
+ },
32
+ {
33
+ internalType: "bool",
34
+ name: "",
35
+ type: "bool",
36
+ },
37
+ {
38
+ internalType: "uint8",
39
+ name: "",
40
+ type: "uint8",
41
+ },
42
+ ],
43
+ stateMutability: "view",
44
+ type: "function",
45
+ },
46
+ {
47
+ inputs: [
48
+ {
49
+ internalType: "uint8",
50
+ name: "a",
51
+ type: "uint8",
52
+ },
53
+ {
54
+ internalType: "uint8",
55
+ name: "b",
56
+ type: "uint8",
57
+ },
58
+ {
59
+ internalType: "uint8",
60
+ name: "amount",
61
+ type: "uint8",
62
+ },
63
+ {
64
+ internalType: "uint8",
65
+ name: "allowance",
66
+ type: "uint8",
67
+ },
68
+ ],
69
+ name: "transferWithAllowanceTest",
70
+ outputs: [
71
+ {
72
+ internalType: "uint8",
73
+ name: "",
74
+ type: "uint8",
75
+ },
76
+ {
77
+ internalType: "uint8",
78
+ name: "",
79
+ type: "uint8",
80
+ },
81
+ {
82
+ internalType: "bool",
83
+ name: "",
84
+ type: "bool",
85
+ },
86
+ {
87
+ internalType: "uint8",
88
+ name: "",
89
+ type: "uint8",
90
+ },
91
+ ],
92
+ stateMutability: "nonpayable",
93
+ type: "function",
94
+ },
95
+ ] as const;
96
+
97
+ const _bytecode =
98
+ "0x608060405234801561001057600080fd5b50610936806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634717f97c1461003b578063eae36abd1461008c575b600080fd5b60005460ff80821691610100810482169162010000820481169163010000009004165b6040805160ff9586168152938516602085015291151583830152909216606082015290519081900360800190f35b61005e61009a36600461082e565b6000806000806100e860405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b61011d6040518060a0016040528060008152602001600081526020016000815260200160008152602001600060ff1681525090565b6101526040518060a0016040528060008152602001600081526020016000815260200160008152602001600060ff1681525090565b61015b8b61039c565b83526101668a61039c565b602084015261017760ff8c1661044a565b604084015261018860ff8b1661044a565b606084015261019960ff8c166104b4565b60808401526101aa60ff8b166104b4565b60a08401526101bb60ff8c16610520565b60c08401526101cc60ff8b16610520565b60e08401526101da8961039c565b82526101e860ff8a1661044a565b60208301526101f960ff8a166104b4565b604083015261020a60ff8a16610520565b606083015260ff891660808301526102218861039c565b815261022f60ff891661044a565b602082015261024060ff89166104b4565b604082015261025160ff8916610520565b606082015260ff88166080820152825160208401518351835160009384938493849361027f93929190610590565b93509350935093506102908461067b565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff929092169190911790556102cb8361067b565b600060016101000a81548160ff021916908360ff1602179055506102ee826106e2565b6000805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff90921691909117905561032d8161067b565b6000805460ff92831663010000009081027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff83168117938490558416918416919091179d50610100820483169c5062010000820483169b50900416975050505050505050945094509450949050565b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0100000000000000000000000000000000000000000000000000000000000000600482015260ff8216602482015260009060649063d9b60b60906044015b6020604051808303816000875af1158015610420573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044491906108b1565b92915050565b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0200000000000000000000000000000000000000000000000000000000000000600482015261ffff8216602482015260009060649063d9b60b6090604401610401565b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0300000000000000000000000000000000000000000000000000000000000000600482015263ffffffff8216602482015260009060649063d9b60b6090604401610401565b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0400000000000000000000000000000000000000000000000000000000000000600482015267ffffffffffffffff8216602482015260009060649063d9b60b6090604401610401565b600080808080808080606463c2ff267a6105ae600180808087610773565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681527fffffffffff0000000000000000000000000000000000000000000000000000009091166004820152602481018f9052604481018e9052606481018d9052608481018c905260a4016080604051808303816000875af1158015610641573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066591906108ca565b929f919e509c50909a5098505050505050505050565b6040517f0cfed5610000000000000000000000000000000000000000000000000000000081527f0100000000000000000000000000000000000000000000000000000000000000600482015260248101829052600090606490630cfed56190604401610401565b6040517f0cfed56100000000000000000000000000000000000000000000000000000000815260006004820181905260248201839052908190606490630cfed561906044016020604051808303816000875af1158015610746573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076a91906108b1565b15159392505050565b600081600281111561078757610787610882565b60ff16600884600481111561079e5761079e610882565b61ffff16901b61ffff1660108660048111156107bc576107bc610882565b62ffffff16901b62ffffff1660188860048111156107dc576107dc610882565b63ffffffff16901b63ffffffff1660208a60048111156107fe576107fe610882565b64ffffffffff16901b1717171760d81b9695505050505050565b803560ff8116811461082957600080fd5b919050565b6000806000806080858703121561084457600080fd5b61084d85610818565b935061085b60208601610818565b925061086960408601610818565b915061087760608601610818565b905092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000602082840312156108c357600080fd5b5051919050565b600080600080608085870312156108e057600080fd5b50508251602084015160408501516060909501519196909550909250905056fea2646970667358221220951dc0b212720d50f6ebc27c403f54899a4385d56a43f08f6e56a7a32995467064736f6c63430008140033";
99
+
100
+ type TransferTestsContractConstructorParams =
101
+ | [signer?: Signer]
102
+ | ConstructorParameters<typeof ContractFactory>;
103
+
104
+ const isSuperArgs = (
105
+ xs: TransferTestsContractConstructorParams
106
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
107
+
108
+ export class TransferTestsContract__factory extends ContractFactory {
109
+ constructor(...args: TransferTestsContractConstructorParams) {
110
+ if (isSuperArgs(args)) {
111
+ super(...args);
112
+ } else {
113
+ super(_abi, _bytecode, args[0]);
114
+ }
115
+ }
116
+
117
+ override getDeployTransaction(
118
+ overrides?: NonPayableOverrides & { from?: string }
119
+ ): Promise<ContractDeployTransaction> {
120
+ return super.getDeployTransaction(overrides || {});
121
+ }
122
+ override deploy(overrides?: NonPayableOverrides & { from?: string }) {
123
+ return super.deploy(overrides || {}) as Promise<
124
+ TransferTestsContract & {
125
+ deploymentTransaction(): ContractTransactionResponse;
126
+ }
127
+ >;
128
+ }
129
+ override connect(
130
+ runner: ContractRunner | null
131
+ ): TransferTestsContract__factory {
132
+ return super.connect(runner) as TransferTestsContract__factory;
133
+ }
134
+
135
+ static readonly bytecode = _bytecode;
136
+ static readonly abi = _abi;
137
+ static createInterface(): TransferTestsContractInterface {
138
+ return new Interface(_abi) as TransferTestsContractInterface;
139
+ }
140
+ static connect(
141
+ address: string,
142
+ runner?: ContractRunner | null
143
+ ): TransferTestsContract {
144
+ return new Contract(
145
+ address,
146
+ _abi,
147
+ runner
148
+ ) as unknown as TransferTestsContract;
149
+ }
150
+ }
@@ -0,0 +1,150 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ Contract,
6
+ ContractFactory,
7
+ ContractTransactionResponse,
8
+ Interface,
9
+ } from "ethers";
10
+ import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
11
+ import type { NonPayableOverrides } from "../../../../../../common";
12
+ import type {
13
+ TransferWithAllowanceTestsContract,
14
+ TransferWithAllowanceTestsContractInterface,
15
+ } from "../../../../../../contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract";
16
+
17
+ const _abi = [
18
+ {
19
+ inputs: [],
20
+ name: "getResults",
21
+ outputs: [
22
+ {
23
+ internalType: "uint8",
24
+ name: "",
25
+ type: "uint8",
26
+ },
27
+ {
28
+ internalType: "uint8",
29
+ name: "",
30
+ type: "uint8",
31
+ },
32
+ {
33
+ internalType: "bool",
34
+ name: "",
35
+ type: "bool",
36
+ },
37
+ {
38
+ internalType: "uint8",
39
+ name: "",
40
+ type: "uint8",
41
+ },
42
+ ],
43
+ stateMutability: "view",
44
+ type: "function",
45
+ },
46
+ {
47
+ inputs: [
48
+ {
49
+ internalType: "uint8",
50
+ name: "a",
51
+ type: "uint8",
52
+ },
53
+ {
54
+ internalType: "uint8",
55
+ name: "b",
56
+ type: "uint8",
57
+ },
58
+ {
59
+ internalType: "uint8",
60
+ name: "amount",
61
+ type: "uint8",
62
+ },
63
+ {
64
+ internalType: "uint8",
65
+ name: "allowance",
66
+ type: "uint8",
67
+ },
68
+ ],
69
+ name: "transferWithAllowanceTest",
70
+ outputs: [
71
+ {
72
+ internalType: "uint8",
73
+ name: "",
74
+ type: "uint8",
75
+ },
76
+ {
77
+ internalType: "uint8",
78
+ name: "",
79
+ type: "uint8",
80
+ },
81
+ {
82
+ internalType: "bool",
83
+ name: "",
84
+ type: "bool",
85
+ },
86
+ {
87
+ internalType: "uint8",
88
+ name: "",
89
+ type: "uint8",
90
+ },
91
+ ],
92
+ stateMutability: "nonpayable",
93
+ type: "function",
94
+ },
95
+ ] as const;
96
+
97
+ const _bytecode =
98
+ "0x608060405234801561001057600080fd5b50610936806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634717f97c1461003b578063eae36abd1461008c575b600080fd5b60005460ff80821691610100810482169162010000820481169163010000009004165b6040805160ff9586168152938516602085015291151583830152909216606082015290519081900360800190f35b61005e61009a36600461082e565b6000806000806100e860405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b61011d6040518060a0016040528060008152602001600081526020016000815260200160008152602001600060ff1681525090565b6101526040518060a0016040528060008152602001600081526020016000815260200160008152602001600060ff1681525090565b61015b8b61039c565b83526101668a61039c565b602084015261017760ff8c1661044a565b604084015261018860ff8b1661044a565b606084015261019960ff8c166104b4565b60808401526101aa60ff8b166104b4565b60a08401526101bb60ff8c16610520565b60c08401526101cc60ff8b16610520565b60e08401526101da8961039c565b82526101e860ff8a1661044a565b60208301526101f960ff8a166104b4565b604083015261020a60ff8a16610520565b606083015260ff891660808301526102218861039c565b815261022f60ff891661044a565b602082015261024060ff89166104b4565b604082015261025160ff8916610520565b606082015260ff88166080820152825160208401518351835160009384938493849361027f93929190610590565b93509350935093506102908461067b565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff929092169190911790556102cb8361067b565b600060016101000a81548160ff021916908360ff1602179055506102ee826106e2565b6000805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff90921691909117905561032d8161067b565b6000805460ff92831663010000009081027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff83168117938490558416918416919091179d50610100820483169c5062010000820483169b50900416975050505050505050945094509450949050565b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0100000000000000000000000000000000000000000000000000000000000000600482015260ff8216602482015260009060649063d9b60b60906044015b6020604051808303816000875af1158015610420573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044491906108b1565b92915050565b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0200000000000000000000000000000000000000000000000000000000000000600482015261ffff8216602482015260009060649063d9b60b6090604401610401565b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0300000000000000000000000000000000000000000000000000000000000000600482015263ffffffff8216602482015260009060649063d9b60b6090604401610401565b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0400000000000000000000000000000000000000000000000000000000000000600482015267ffffffffffffffff8216602482015260009060649063d9b60b6090604401610401565b600080808080808080606463c2ff267a6105ae600180808087610773565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681527fffffffffff0000000000000000000000000000000000000000000000000000009091166004820152602481018f9052604481018e9052606481018d9052608481018c905260a4016080604051808303816000875af1158015610641573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066591906108ca565b929f919e509c50909a5098505050505050505050565b6040517f0cfed5610000000000000000000000000000000000000000000000000000000081527f0100000000000000000000000000000000000000000000000000000000000000600482015260248101829052600090606490630cfed56190604401610401565b6040517f0cfed56100000000000000000000000000000000000000000000000000000000815260006004820181905260248201839052908190606490630cfed561906044016020604051808303816000875af1158015610746573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076a91906108b1565b15159392505050565b600081600281111561078757610787610882565b60ff16600884600481111561079e5761079e610882565b61ffff16901b61ffff1660108660048111156107bc576107bc610882565b62ffffff16901b62ffffff1660188860048111156107dc576107dc610882565b63ffffffff16901b63ffffffff1660208a60048111156107fe576107fe610882565b64ffffffffff16901b1717171760d81b9695505050505050565b803560ff8116811461082957600080fd5b919050565b6000806000806080858703121561084457600080fd5b61084d85610818565b935061085b60208601610818565b925061086960408601610818565b915061087760608601610818565b905092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000602082840312156108c357600080fd5b5051919050565b600080600080608085870312156108e057600080fd5b50508251602084015160408501516060909501519196909550909250905056fea26469706673582212201629acc2e307bcf2a0c9f22498849a2bb48fcabbb1d406aeca4a86f190acdf4964736f6c63430008140033";
99
+
100
+ type TransferWithAllowanceTestsContractConstructorParams =
101
+ | [signer?: Signer]
102
+ | ConstructorParameters<typeof ContractFactory>;
103
+
104
+ const isSuperArgs = (
105
+ xs: TransferWithAllowanceTestsContractConstructorParams
106
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
107
+
108
+ export class TransferWithAllowanceTestsContract__factory extends ContractFactory {
109
+ constructor(...args: TransferWithAllowanceTestsContractConstructorParams) {
110
+ if (isSuperArgs(args)) {
111
+ super(...args);
112
+ } else {
113
+ super(_abi, _bytecode, args[0]);
114
+ }
115
+ }
116
+
117
+ override getDeployTransaction(
118
+ overrides?: NonPayableOverrides & { from?: string }
119
+ ): Promise<ContractDeployTransaction> {
120
+ return super.getDeployTransaction(overrides || {});
121
+ }
122
+ override deploy(overrides?: NonPayableOverrides & { from?: string }) {
123
+ return super.deploy(overrides || {}) as Promise<
124
+ TransferWithAllowanceTestsContract & {
125
+ deploymentTransaction(): ContractTransactionResponse;
126
+ }
127
+ >;
128
+ }
129
+ override connect(
130
+ runner: ContractRunner | null
131
+ ): TransferWithAllowanceTestsContract__factory {
132
+ return super.connect(runner) as TransferWithAllowanceTestsContract__factory;
133
+ }
134
+
135
+ static readonly bytecode = _bytecode;
136
+ static readonly abi = _abi;
137
+ static createInterface(): TransferWithAllowanceTestsContractInterface {
138
+ return new Interface(_abi) as TransferWithAllowanceTestsContractInterface;
139
+ }
140
+ static connect(
141
+ address: string,
142
+ runner?: ContractRunner | null
143
+ ): TransferWithAllowanceTestsContract {
144
+ return new Contract(
145
+ address,
146
+ _abi,
147
+ runner
148
+ ) as unknown as TransferWithAllowanceTestsContract;
149
+ }
150
+ }
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { TransferTestsContract__factory } from "./TransferTestsContract__factory";
5
+ export { TransferWithAllowanceTestsContract__factory } from "./TransferWithAllowanceTestsContract__factory";