@coti-io/coti-contracts 1.0.0 → 1.0.3

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 (102) 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/access/DataPrivacyFramework/extensions/DataPrivacyFrameworkMpc.sol +112 -0
  6. package/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol +152 -0
  7. package/contracts/mocks/utils/mpc/BitwiseTestsContract.sol +11 -1
  8. package/contracts/mocks/utils/mpc/Comparison2TestsContract.sol +8 -0
  9. package/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.sol +33 -4
  10. package/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.sol +35 -10
  11. package/contracts/mocks/utils/mpc/ShiftTestsContract.sol +126 -0
  12. package/contracts/mocks/utils/mpc/TransferTestsContract.sol +3 -0
  13. package/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract.sol +222 -0
  14. package/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract.sol +222 -0
  15. package/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol +223 -0
  16. package/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract.sol +222 -0
  17. package/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract.sol +265 -0
  18. package/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol +281 -0
  19. package/contracts/token/PrivateERC20/PrivateERC20.sol +1 -1
  20. package/contracts/token/PrivateERC721/IERC721Errors.sol +57 -0
  21. package/contracts/token/PrivateERC721/PrivateERC721.sol +1 -1
  22. package/contracts/utils/mpc/MpcCore.sol +40 -0
  23. package/contracts/utils/mpc/MpcInterface.sol +2 -0
  24. package/hardhat.config.ts +9 -1
  25. package/package.json +20 -4
  26. package/test/onboard/AccountOnboard.test.ts +2 -2
  27. package/test/token/PrivateERC20/PrivateERC20.test.ts +2 -2
  28. package/test/utils/accounts.ts +2 -2
  29. package/test/utils/mpc/Precompile.test.ts +24 -2
  30. package/typechain-types/@openzeppelin/contracts/interfaces/index.ts +0 -2
  31. package/typechain-types/contracts/GasTest.ts +91 -0
  32. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.ts +66 -0
  33. package/typechain-types/contracts/mocks/utils/mpc/BitwiseTestsContract.ts +6 -0
  34. package/typechain-types/contracts/mocks/utils/mpc/Comparison2TestsContract.ts +6 -0
  35. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.ts +36 -6
  36. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract.ts +251 -0
  37. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract.ts +250 -0
  38. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +5 -0
  39. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.ts +389 -0
  40. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract.ts +391 -0
  41. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract.ts +391 -0
  42. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract.ts +391 -0
  43. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract.ts +391 -0
  44. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +5 -0
  45. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.ts +391 -0
  46. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract.ts +391 -0
  47. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract.ts +306 -0
  48. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract.ts +125 -0
  49. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract.ts +125 -0
  50. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +5 -0
  51. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.ts +296 -0
  52. package/typechain-types/contracts/mocks/utils/mpc/index.ts +7 -0
  53. package/typechain-types/contracts/token/PrivateERC721/IERC721Errors.ts +69 -0
  54. package/typechain-types/contracts/token/PrivateERC721/index.ts +1 -0
  55. package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +38 -0
  56. package/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +0 -1
  57. package/typechain-types/factories/contracts/GasTest__factory.ts +75 -0
  58. package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +1 -1
  59. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +1 -1
  60. package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
  61. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +73 -1
  62. package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +11 -1
  63. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +1 -1
  64. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +11 -1
  65. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +1 -1
  66. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +1 -1
  67. package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +1 -1
  68. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +26 -30
  69. package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +1 -1
  70. package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
  71. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +1 -1
  72. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +1 -1
  73. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract__factory.ts +294 -0
  74. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +292 -0
  75. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +5 -0
  76. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract__factory.ts +720 -0
  77. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +724 -0
  78. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +724 -0
  79. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract__factory.ts +724 -0
  80. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract__factory.ts +724 -0
  81. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +5 -0
  82. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +724 -0
  83. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +724 -0
  84. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +507 -0
  85. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract__factory.ts +150 -0
  86. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +150 -0
  87. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +5 -0
  88. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +434 -0
  89. package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +7 -0
  90. package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +1 -1
  91. package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +1 -1
  92. package/typechain-types/factories/contracts/token/PrivateERC721/IERC721Errors__factory.ts +128 -0
  93. package/typechain-types/factories/contracts/token/PrivateERC721/index.ts +1 -0
  94. package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +1 -1
  95. package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +58 -0
  96. package/typechain-types/hardhat.d.ts +144 -54
  97. package/typechain-types/index.ts +16 -6
  98. package/contracts/access/DataPrivacyFramework/README.md +0 -68
  99. package/contracts/onboard/README.md +0 -65
  100. package/contracts/token/PrivateERC20/README.md +0 -104
  101. package/contracts/token/PrivateERC721/README.md +0 -282
  102. package/contracts/utils/mpc/README.md +0 -82
@@ -0,0 +1,125 @@
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
+ ContractRunner,
12
+ ContractMethod,
13
+ Listener,
14
+ } from "ethers";
15
+ import type {
16
+ TypedContractEvent,
17
+ TypedDeferredTopicFilter,
18
+ TypedEventLog,
19
+ TypedListener,
20
+ TypedContractMethod,
21
+ } from "../../../../../common";
22
+
23
+ export interface TransferTestsContractInterface extends Interface {
24
+ getFunction(
25
+ nameOrSignature: "getResults" | "transferWithAllowanceTest"
26
+ ): FunctionFragment;
27
+
28
+ encodeFunctionData(
29
+ functionFragment: "getResults",
30
+ values?: undefined
31
+ ): string;
32
+ encodeFunctionData(
33
+ functionFragment: "transferWithAllowanceTest",
34
+ values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
35
+ ): string;
36
+
37
+ decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
38
+ decodeFunctionResult(
39
+ functionFragment: "transferWithAllowanceTest",
40
+ data: BytesLike
41
+ ): Result;
42
+ }
43
+
44
+ export interface TransferTestsContract extends BaseContract {
45
+ connect(runner?: ContractRunner | null): TransferTestsContract;
46
+ waitForDeployment(): Promise<this>;
47
+
48
+ interface: TransferTestsContractInterface;
49
+
50
+ queryFilter<TCEvent extends TypedContractEvent>(
51
+ event: TCEvent,
52
+ fromBlockOrBlockhash?: string | number | undefined,
53
+ toBlock?: string | number | undefined
54
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
55
+ queryFilter<TCEvent extends TypedContractEvent>(
56
+ filter: TypedDeferredTopicFilter<TCEvent>,
57
+ fromBlockOrBlockhash?: string | number | undefined,
58
+ toBlock?: string | number | undefined
59
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
60
+
61
+ on<TCEvent extends TypedContractEvent>(
62
+ event: TCEvent,
63
+ listener: TypedListener<TCEvent>
64
+ ): Promise<this>;
65
+ on<TCEvent extends TypedContractEvent>(
66
+ filter: TypedDeferredTopicFilter<TCEvent>,
67
+ listener: TypedListener<TCEvent>
68
+ ): Promise<this>;
69
+
70
+ once<TCEvent extends TypedContractEvent>(
71
+ event: TCEvent,
72
+ listener: TypedListener<TCEvent>
73
+ ): Promise<this>;
74
+ once<TCEvent extends TypedContractEvent>(
75
+ filter: TypedDeferredTopicFilter<TCEvent>,
76
+ listener: TypedListener<TCEvent>
77
+ ): Promise<this>;
78
+
79
+ listeners<TCEvent extends TypedContractEvent>(
80
+ event: TCEvent
81
+ ): Promise<Array<TypedListener<TCEvent>>>;
82
+ listeners(eventName?: string): Promise<Array<Listener>>;
83
+ removeAllListeners<TCEvent extends TypedContractEvent>(
84
+ event?: TCEvent
85
+ ): Promise<this>;
86
+
87
+ getResults: TypedContractMethod<
88
+ [],
89
+ [[bigint, bigint, boolean, bigint]],
90
+ "view"
91
+ >;
92
+
93
+ transferWithAllowanceTest: TypedContractMethod<
94
+ [
95
+ a: BigNumberish,
96
+ b: BigNumberish,
97
+ amount: BigNumberish,
98
+ allowance: BigNumberish
99
+ ],
100
+ [[bigint, bigint, boolean, bigint]],
101
+ "nonpayable"
102
+ >;
103
+
104
+ getFunction<T extends ContractMethod = ContractMethod>(
105
+ key: string | FunctionFragment
106
+ ): T;
107
+
108
+ getFunction(
109
+ nameOrSignature: "getResults"
110
+ ): TypedContractMethod<[], [[bigint, bigint, boolean, bigint]], "view">;
111
+ getFunction(
112
+ nameOrSignature: "transferWithAllowanceTest"
113
+ ): TypedContractMethod<
114
+ [
115
+ a: BigNumberish,
116
+ b: BigNumberish,
117
+ amount: BigNumberish,
118
+ allowance: BigNumberish
119
+ ],
120
+ [[bigint, bigint, boolean, bigint]],
121
+ "nonpayable"
122
+ >;
123
+
124
+ filters: {};
125
+ }
@@ -0,0 +1,125 @@
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
+ ContractRunner,
12
+ ContractMethod,
13
+ Listener,
14
+ } from "ethers";
15
+ import type {
16
+ TypedContractEvent,
17
+ TypedDeferredTopicFilter,
18
+ TypedEventLog,
19
+ TypedListener,
20
+ TypedContractMethod,
21
+ } from "../../../../../common";
22
+
23
+ export interface TransferWithAllowanceTestsContractInterface extends Interface {
24
+ getFunction(
25
+ nameOrSignature: "getResults" | "transferWithAllowanceTest"
26
+ ): FunctionFragment;
27
+
28
+ encodeFunctionData(
29
+ functionFragment: "getResults",
30
+ values?: undefined
31
+ ): string;
32
+ encodeFunctionData(
33
+ functionFragment: "transferWithAllowanceTest",
34
+ values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
35
+ ): string;
36
+
37
+ decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
38
+ decodeFunctionResult(
39
+ functionFragment: "transferWithAllowanceTest",
40
+ data: BytesLike
41
+ ): Result;
42
+ }
43
+
44
+ export interface TransferWithAllowanceTestsContract extends BaseContract {
45
+ connect(runner?: ContractRunner | null): TransferWithAllowanceTestsContract;
46
+ waitForDeployment(): Promise<this>;
47
+
48
+ interface: TransferWithAllowanceTestsContractInterface;
49
+
50
+ queryFilter<TCEvent extends TypedContractEvent>(
51
+ event: TCEvent,
52
+ fromBlockOrBlockhash?: string | number | undefined,
53
+ toBlock?: string | number | undefined
54
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
55
+ queryFilter<TCEvent extends TypedContractEvent>(
56
+ filter: TypedDeferredTopicFilter<TCEvent>,
57
+ fromBlockOrBlockhash?: string | number | undefined,
58
+ toBlock?: string | number | undefined
59
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
60
+
61
+ on<TCEvent extends TypedContractEvent>(
62
+ event: TCEvent,
63
+ listener: TypedListener<TCEvent>
64
+ ): Promise<this>;
65
+ on<TCEvent extends TypedContractEvent>(
66
+ filter: TypedDeferredTopicFilter<TCEvent>,
67
+ listener: TypedListener<TCEvent>
68
+ ): Promise<this>;
69
+
70
+ once<TCEvent extends TypedContractEvent>(
71
+ event: TCEvent,
72
+ listener: TypedListener<TCEvent>
73
+ ): Promise<this>;
74
+ once<TCEvent extends TypedContractEvent>(
75
+ filter: TypedDeferredTopicFilter<TCEvent>,
76
+ listener: TypedListener<TCEvent>
77
+ ): Promise<this>;
78
+
79
+ listeners<TCEvent extends TypedContractEvent>(
80
+ event: TCEvent
81
+ ): Promise<Array<TypedListener<TCEvent>>>;
82
+ listeners(eventName?: string): Promise<Array<Listener>>;
83
+ removeAllListeners<TCEvent extends TypedContractEvent>(
84
+ event?: TCEvent
85
+ ): Promise<this>;
86
+
87
+ getResults: TypedContractMethod<
88
+ [],
89
+ [[bigint, bigint, boolean, bigint]],
90
+ "view"
91
+ >;
92
+
93
+ transferWithAllowanceTest: TypedContractMethod<
94
+ [
95
+ a: BigNumberish,
96
+ b: BigNumberish,
97
+ amount: BigNumberish,
98
+ allowance: BigNumberish
99
+ ],
100
+ [[bigint, bigint, boolean, bigint]],
101
+ "nonpayable"
102
+ >;
103
+
104
+ getFunction<T extends ContractMethod = ContractMethod>(
105
+ key: string | FunctionFragment
106
+ ): T;
107
+
108
+ getFunction(
109
+ nameOrSignature: "getResults"
110
+ ): TypedContractMethod<[], [[bigint, bigint, boolean, bigint]], "view">;
111
+ getFunction(
112
+ nameOrSignature: "transferWithAllowanceTest"
113
+ ): TypedContractMethod<
114
+ [
115
+ a: BigNumberish,
116
+ b: BigNumberish,
117
+ amount: BigNumberish,
118
+ allowance: BigNumberish
119
+ ],
120
+ [[bigint, bigint, boolean, bigint]],
121
+ "nonpayable"
122
+ >;
123
+
124
+ filters: {};
125
+ }
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export type { TransferTestsContract } from "./TransferTestsContract";
5
+ export type { TransferWithAllowanceTestsContract } from "./TransferWithAllowanceTestsContract";
@@ -0,0 +1,296 @@
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
+ ContractRunner,
12
+ ContractMethod,
13
+ Listener,
14
+ } from "ethers";
15
+ import type {
16
+ TypedContractEvent,
17
+ TypedDeferredTopicFilter,
18
+ TypedEventLog,
19
+ TypedListener,
20
+ TypedContractMethod,
21
+ } from "../../../../common";
22
+
23
+ export declare namespace TransferWithAllowanceTestsContract {
24
+ export type AllGTCastingValuesStruct = {
25
+ a8_s: BigNumberish;
26
+ b8_s: BigNumberish;
27
+ a16_s: BigNumberish;
28
+ b16_s: BigNumberish;
29
+ a32_s: BigNumberish;
30
+ b32_s: BigNumberish;
31
+ a64_s: BigNumberish;
32
+ b64_s: BigNumberish;
33
+ };
34
+
35
+ export type AllGTCastingValuesStructOutput = [
36
+ a8_s: bigint,
37
+ b8_s: bigint,
38
+ a16_s: bigint,
39
+ b16_s: bigint,
40
+ a32_s: bigint,
41
+ b32_s: bigint,
42
+ a64_s: bigint,
43
+ b64_s: bigint
44
+ ] & {
45
+ a8_s: bigint;
46
+ b8_s: bigint;
47
+ a16_s: bigint;
48
+ b16_s: bigint;
49
+ a32_s: bigint;
50
+ b32_s: bigint;
51
+ a64_s: bigint;
52
+ b64_s: bigint;
53
+ };
54
+
55
+ export type AllAmountValuesStruct = {
56
+ amount8_s: BigNumberish;
57
+ amount16_s: BigNumberish;
58
+ amount32_s: BigNumberish;
59
+ amount64_s: BigNumberish;
60
+ amount: BigNumberish;
61
+ };
62
+
63
+ export type AllAmountValuesStructOutput = [
64
+ amount8_s: bigint,
65
+ amount16_s: bigint,
66
+ amount32_s: bigint,
67
+ amount64_s: bigint,
68
+ amount: bigint
69
+ ] & {
70
+ amount8_s: bigint;
71
+ amount16_s: bigint;
72
+ amount32_s: bigint;
73
+ amount64_s: bigint;
74
+ amount: bigint;
75
+ };
76
+
77
+ export type AllAllowanceValuesStruct = {
78
+ allowance8_s: BigNumberish;
79
+ allowance16_s: BigNumberish;
80
+ allowance32_s: BigNumberish;
81
+ allowance64_s: BigNumberish;
82
+ allowance: BigNumberish;
83
+ };
84
+
85
+ export type AllAllowanceValuesStructOutput = [
86
+ allowance8_s: bigint,
87
+ allowance16_s: bigint,
88
+ allowance32_s: bigint,
89
+ allowance64_s: bigint,
90
+ allowance: bigint
91
+ ] & {
92
+ allowance8_s: bigint;
93
+ allowance16_s: bigint;
94
+ allowance32_s: bigint;
95
+ allowance64_s: bigint;
96
+ allowance: bigint;
97
+ };
98
+ }
99
+
100
+ export interface TransferWithAllowanceTestsContractInterface extends Interface {
101
+ getFunction(
102
+ nameOrSignature:
103
+ | "computeAndCheckTransfer16"
104
+ | "computeAndCheckTransfer32"
105
+ | "getResults"
106
+ | "transferWithAllowanceTest"
107
+ ): FunctionFragment;
108
+
109
+ encodeFunctionData(
110
+ functionFragment: "computeAndCheckTransfer16",
111
+ values: [
112
+ TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
113
+ TransferWithAllowanceTestsContract.AllAmountValuesStruct,
114
+ TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
115
+ BigNumberish,
116
+ BigNumberish,
117
+ boolean,
118
+ BigNumberish
119
+ ]
120
+ ): string;
121
+ encodeFunctionData(
122
+ functionFragment: "computeAndCheckTransfer32",
123
+ values: [
124
+ TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
125
+ TransferWithAllowanceTestsContract.AllAmountValuesStruct,
126
+ TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
127
+ BigNumberish,
128
+ BigNumberish,
129
+ boolean,
130
+ BigNumberish
131
+ ]
132
+ ): string;
133
+ encodeFunctionData(
134
+ functionFragment: "getResults",
135
+ values?: undefined
136
+ ): string;
137
+ encodeFunctionData(
138
+ functionFragment: "transferWithAllowanceTest",
139
+ values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
140
+ ): string;
141
+
142
+ decodeFunctionResult(
143
+ functionFragment: "computeAndCheckTransfer16",
144
+ data: BytesLike
145
+ ): Result;
146
+ decodeFunctionResult(
147
+ functionFragment: "computeAndCheckTransfer32",
148
+ data: BytesLike
149
+ ): Result;
150
+ decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
151
+ decodeFunctionResult(
152
+ functionFragment: "transferWithAllowanceTest",
153
+ data: BytesLike
154
+ ): Result;
155
+ }
156
+
157
+ export interface TransferWithAllowanceTestsContract extends BaseContract {
158
+ connect(runner?: ContractRunner | null): TransferWithAllowanceTestsContract;
159
+ waitForDeployment(): Promise<this>;
160
+
161
+ interface: TransferWithAllowanceTestsContractInterface;
162
+
163
+ queryFilter<TCEvent extends TypedContractEvent>(
164
+ event: TCEvent,
165
+ fromBlockOrBlockhash?: string | number | undefined,
166
+ toBlock?: string | number | undefined
167
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
168
+ queryFilter<TCEvent extends TypedContractEvent>(
169
+ filter: TypedDeferredTopicFilter<TCEvent>,
170
+ fromBlockOrBlockhash?: string | number | undefined,
171
+ toBlock?: string | number | undefined
172
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
173
+
174
+ on<TCEvent extends TypedContractEvent>(
175
+ event: TCEvent,
176
+ listener: TypedListener<TCEvent>
177
+ ): Promise<this>;
178
+ on<TCEvent extends TypedContractEvent>(
179
+ filter: TypedDeferredTopicFilter<TCEvent>,
180
+ listener: TypedListener<TCEvent>
181
+ ): Promise<this>;
182
+
183
+ once<TCEvent extends TypedContractEvent>(
184
+ event: TCEvent,
185
+ listener: TypedListener<TCEvent>
186
+ ): Promise<this>;
187
+ once<TCEvent extends TypedContractEvent>(
188
+ filter: TypedDeferredTopicFilter<TCEvent>,
189
+ listener: TypedListener<TCEvent>
190
+ ): Promise<this>;
191
+
192
+ listeners<TCEvent extends TypedContractEvent>(
193
+ event: TCEvent
194
+ ): Promise<Array<TypedListener<TCEvent>>>;
195
+ listeners(eventName?: string): Promise<Array<Listener>>;
196
+ removeAllListeners<TCEvent extends TypedContractEvent>(
197
+ event?: TCEvent
198
+ ): Promise<this>;
199
+
200
+ computeAndCheckTransfer16: TypedContractMethod<
201
+ [
202
+ allGTCastingValues: TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
203
+ allAmountValues: TransferWithAllowanceTestsContract.AllAmountValuesStruct,
204
+ allAllowanceValues: TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
205
+ new_a: BigNumberish,
206
+ new_b: BigNumberish,
207
+ res: boolean,
208
+ new_allowance: BigNumberish
209
+ ],
210
+ [void],
211
+ "nonpayable"
212
+ >;
213
+
214
+ computeAndCheckTransfer32: TypedContractMethod<
215
+ [
216
+ allGTCastingValues: TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
217
+ allAmountValues: TransferWithAllowanceTestsContract.AllAmountValuesStruct,
218
+ allAllowanceValues: TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
219
+ new_a: BigNumberish,
220
+ new_b: BigNumberish,
221
+ res: boolean,
222
+ new_allowance: BigNumberish
223
+ ],
224
+ [void],
225
+ "nonpayable"
226
+ >;
227
+
228
+ getResults: TypedContractMethod<
229
+ [],
230
+ [[bigint, bigint, boolean, bigint]],
231
+ "view"
232
+ >;
233
+
234
+ transferWithAllowanceTest: TypedContractMethod<
235
+ [
236
+ a: BigNumberish,
237
+ b: BigNumberish,
238
+ amount: BigNumberish,
239
+ allowance: BigNumberish
240
+ ],
241
+ [[bigint, bigint, boolean, bigint]],
242
+ "nonpayable"
243
+ >;
244
+
245
+ getFunction<T extends ContractMethod = ContractMethod>(
246
+ key: string | FunctionFragment
247
+ ): T;
248
+
249
+ getFunction(
250
+ nameOrSignature: "computeAndCheckTransfer16"
251
+ ): TypedContractMethod<
252
+ [
253
+ allGTCastingValues: TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
254
+ allAmountValues: TransferWithAllowanceTestsContract.AllAmountValuesStruct,
255
+ allAllowanceValues: TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
256
+ new_a: BigNumberish,
257
+ new_b: BigNumberish,
258
+ res: boolean,
259
+ new_allowance: BigNumberish
260
+ ],
261
+ [void],
262
+ "nonpayable"
263
+ >;
264
+ getFunction(
265
+ nameOrSignature: "computeAndCheckTransfer32"
266
+ ): TypedContractMethod<
267
+ [
268
+ allGTCastingValues: TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
269
+ allAmountValues: TransferWithAllowanceTestsContract.AllAmountValuesStruct,
270
+ allAllowanceValues: TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
271
+ new_a: BigNumberish,
272
+ new_b: BigNumberish,
273
+ res: boolean,
274
+ new_allowance: BigNumberish
275
+ ],
276
+ [void],
277
+ "nonpayable"
278
+ >;
279
+ getFunction(
280
+ nameOrSignature: "getResults"
281
+ ): TypedContractMethod<[], [[bigint, bigint, boolean, bigint]], "view">;
282
+ getFunction(
283
+ nameOrSignature: "transferWithAllowanceTest"
284
+ ): TypedContractMethod<
285
+ [
286
+ a: BigNumberish,
287
+ b: BigNumberish,
288
+ amount: BigNumberish,
289
+ allowance: BigNumberish
290
+ ],
291
+ [[bigint, bigint, boolean, bigint]],
292
+ "nonpayable"
293
+ >;
294
+
295
+ filters: {};
296
+ }
@@ -9,6 +9,13 @@ export type { MinMaxTestsContract } from "./MinMaxTestsContract";
9
9
  export type { Miscellaneous1TestsContract } from "./Miscellaneous1TestsContract";
10
10
  export type { MiscellaneousTestsContract } from "./MiscellaneousTestsContract";
11
11
  export type { OffboardToUserKeyTestContract } from "./OffboardToUserKeyTestContract";
12
+ export type { ShiftTestsContract } from "./ShiftTestsContract";
12
13
  export type { StringTestsContract } from "./StringTestsContract";
13
14
  export type { TransferScalarTestsContract } from "./TransferScalarTestsContract";
14
15
  export type { TransferTestsContract } from "./TransferTestsContract";
16
+ export type { TransferWithAllowance64_16TestsContract } from "./TransferWithAllowance64_16TestsContract";
17
+ export type { TransferWithAllowance64_32TestsContract } from "./TransferWithAllowance64_32TestsContract";
18
+ export type { TransferWithAllowance64_64TestsContract } from "./TransferWithAllowance64_64TestsContract";
19
+ export type { TransferWithAllowance64_8TestsContract } from "./TransferWithAllowance64_8TestsContract";
20
+ export type { TransferWithAllowanceScalarTestsContract } from "./TransferWithAllowanceScalarTestsContract";
21
+ export type { TransferWithAllowanceTestsContract } from "./TransferWithAllowanceTestsContract";
@@ -0,0 +1,69 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ FunctionFragment,
7
+ Interface,
8
+ ContractRunner,
9
+ ContractMethod,
10
+ Listener,
11
+ } from "ethers";
12
+ import type {
13
+ TypedContractEvent,
14
+ TypedDeferredTopicFilter,
15
+ TypedEventLog,
16
+ TypedListener,
17
+ } from "../../../common";
18
+
19
+ export interface IERC721ErrorsInterface extends Interface {}
20
+
21
+ export interface IERC721Errors extends BaseContract {
22
+ connect(runner?: ContractRunner | null): IERC721Errors;
23
+ waitForDeployment(): Promise<this>;
24
+
25
+ interface: IERC721ErrorsInterface;
26
+
27
+ queryFilter<TCEvent extends TypedContractEvent>(
28
+ event: TCEvent,
29
+ fromBlockOrBlockhash?: string | number | undefined,
30
+ toBlock?: string | number | undefined
31
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
32
+ queryFilter<TCEvent extends TypedContractEvent>(
33
+ filter: TypedDeferredTopicFilter<TCEvent>,
34
+ fromBlockOrBlockhash?: string | number | undefined,
35
+ toBlock?: string | number | undefined
36
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
37
+
38
+ on<TCEvent extends TypedContractEvent>(
39
+ event: TCEvent,
40
+ listener: TypedListener<TCEvent>
41
+ ): Promise<this>;
42
+ on<TCEvent extends TypedContractEvent>(
43
+ filter: TypedDeferredTopicFilter<TCEvent>,
44
+ listener: TypedListener<TCEvent>
45
+ ): Promise<this>;
46
+
47
+ once<TCEvent extends TypedContractEvent>(
48
+ event: TCEvent,
49
+ listener: TypedListener<TCEvent>
50
+ ): Promise<this>;
51
+ once<TCEvent extends TypedContractEvent>(
52
+ filter: TypedDeferredTopicFilter<TCEvent>,
53
+ listener: TypedListener<TCEvent>
54
+ ): Promise<this>;
55
+
56
+ listeners<TCEvent extends TypedContractEvent>(
57
+ event: TCEvent
58
+ ): Promise<Array<TypedListener<TCEvent>>>;
59
+ listeners(eventName?: string): Promise<Array<Listener>>;
60
+ removeAllListeners<TCEvent extends TypedContractEvent>(
61
+ event?: TCEvent
62
+ ): Promise<this>;
63
+
64
+ getFunction<T extends ContractMethod = ContractMethod>(
65
+ key: string | FunctionFragment
66
+ ): T;
67
+
68
+ filters: {};
69
+ }
@@ -3,4 +3,5 @@
3
3
  /* eslint-disable */
4
4
  import type * as extensions from "./extensions";
5
5
  export type { extensions };
6
+ export type { IERC721Errors } from "./IERC721Errors";
6
7
  export type { PrivateERC721 } from "./PrivateERC721";