@coti-io/coti-contracts 0.1.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 (125) 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 +3 -115
  6. package/contracts/mocks/README.md +1 -1
  7. package/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol +257 -280
  8. package/contracts/mocks/utils/mpc/BitwiseTestsContract.sol +93 -187
  9. package/contracts/mocks/utils/mpc/{Comparison1Tests.Contract.sol → Comparison1TestsContract.sol} +67 -115
  10. package/contracts/mocks/utils/mpc/Comparison2TestsContract.sol +76 -116
  11. package/contracts/mocks/utils/mpc/MinMaxTestsContract.sol +69 -164
  12. package/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.sol +103 -56
  13. package/contracts/mocks/utils/mpc/MiscellaneousTestsContract.sol +270 -0
  14. package/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.sol +127 -0
  15. package/contracts/mocks/utils/mpc/README.md +12 -12
  16. package/contracts/mocks/utils/mpc/TransferScalarTestsContract.sol +54 -211
  17. package/contracts/mocks/utils/mpc/TransferTestsContract.sol +165 -640
  18. package/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract.sol +222 -0
  19. package/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract.sol +222 -0
  20. package/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol +223 -0
  21. package/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract.sol +222 -0
  22. package/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract.sol +265 -0
  23. package/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol +281 -0
  24. package/contracts/onboard/AccountOnboard.sol +3 -3
  25. package/contracts/token/PrivateERC20/PrivateERC20.sol +1 -1
  26. package/contracts/token/PrivateERC721/IERC721Errors.sol +57 -0
  27. package/contracts/token/PrivateERC721/PrivateERC721.sol +1 -1
  28. package/contracts/utils/mpc/MpcCore.sol +2835 -988
  29. package/contracts/utils/mpc/MpcInterface.sol +6 -4
  30. package/hardhat.config.ts +17 -6
  31. package/package.json +20 -4
  32. package/test/token/PrivateERC20/PrivateERC20.test.ts +2 -2
  33. package/test/utils/accounts.ts +1 -1
  34. package/test/utils/mpc/Precompile.test.ts +42 -39
  35. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract.ts +374 -0
  36. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract.ts +374 -0
  37. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/index.ts +5 -0
  38. package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.ts +96 -10
  39. package/typechain-types/contracts/mocks/utils/mpc/BitwiseTestsContract.ts +45 -5
  40. package/typechain-types/contracts/mocks/utils/mpc/Comparison1TestsContract.ts +374 -0
  41. package/typechain-types/contracts/mocks/utils/mpc/Comparison2TestsContract.ts +45 -5
  42. package/typechain-types/contracts/mocks/utils/mpc/MinMaxTestsContract.ts +25 -5
  43. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.ts +62 -0
  44. package/typechain-types/contracts/mocks/utils/mpc/MiscellaneousTestsContract.ts +396 -0
  45. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.ts +251 -0
  46. package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract.ts +11 -8
  47. package/typechain-types/contracts/mocks/utils/mpc/TransferScalarTestsContract.ts +15 -15
  48. package/typechain-types/contracts/mocks/utils/mpc/TransferTestsContract.ts +15 -15
  49. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract.ts +251 -0
  50. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract.ts +250 -0
  51. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +5 -0
  52. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.ts +389 -0
  53. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract.ts +391 -0
  54. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract.ts +391 -0
  55. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract.ts +391 -0
  56. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract.ts +391 -0
  57. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +5 -0
  58. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.ts +391 -0
  59. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract.ts +391 -0
  60. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract.ts +306 -0
  61. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract.ts +125 -0
  62. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract.ts +125 -0
  63. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +5 -0
  64. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.ts +296 -0
  65. package/typechain-types/contracts/mocks/utils/mpc/index.ts +9 -6
  66. package/typechain-types/contracts/onboard/AccountOnboard.ts +9 -4
  67. package/typechain-types/contracts/token/PrivateERC721/IERC721Errors.ts +69 -0
  68. package/typechain-types/contracts/token/PrivateERC721/index.ts +1 -0
  69. package/typechain-types/contracts/utils/mpc/MpcCore.ts +84 -0
  70. package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +81 -40
  71. package/typechain-types/contracts/utils/mpc/index.ts +1 -0
  72. package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +1 -1
  73. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +1 -1
  74. package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
  75. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract__factory.ts +387 -0
  76. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract__factory.ts +388 -0
  77. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/index.ts +5 -0
  78. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +92 -7
  79. package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +38 -2
  80. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract__factory.ts +1 -1
  81. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +387 -0
  82. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +38 -2
  83. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +15 -2
  84. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +66 -1
  85. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous2TestsContract__factory.ts +1 -1
  86. package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +424 -0
  87. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +285 -0
  88. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract__factory.ts +19 -3
  89. package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +1 -1
  90. package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
  91. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +4 -4
  92. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +4 -4
  93. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract__factory.ts +294 -0
  94. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +292 -0
  95. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +5 -0
  96. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract__factory.ts +720 -0
  97. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +724 -0
  98. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +724 -0
  99. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract__factory.ts +724 -0
  100. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract__factory.ts +724 -0
  101. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +5 -0
  102. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +724 -0
  103. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +724 -0
  104. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +507 -0
  105. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract__factory.ts +150 -0
  106. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +150 -0
  107. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +5 -0
  108. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +434 -0
  109. package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +9 -4
  110. package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +1 -1
  111. package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +8 -2
  112. package/typechain-types/factories/contracts/token/PrivateERC721/IERC721Errors__factory.ts +128 -0
  113. package/typechain-types/factories/contracts/token/PrivateERC721/index.ts +1 -0
  114. package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +77 -0
  115. package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +124 -61
  116. package/typechain-types/factories/contracts/utils/mpc/index.ts +1 -0
  117. package/typechain-types/hardhat.d.ts +152 -26
  118. package/typechain-types/index.ts +20 -8
  119. package/contracts/access/DataPrivacyFramework/README.md +0 -68
  120. package/contracts/mocks/utils/mpc/Miscellaneous2TestsContract.sol +0 -448
  121. package/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol +0 -81
  122. package/contracts/mocks/utils/mpc/ShiftTestsContract.sol +0 -311
  123. package/contracts/token/PrivateERC20/README.md +0 -104
  124. package/contracts/token/PrivateERC721/README.md +0 -282
  125. package/contracts/utils/mpc/README.md +0 -82
@@ -0,0 +1,128 @@
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 {
7
+ IERC721Errors,
8
+ IERC721ErrorsInterface,
9
+ } from "../../../../contracts/token/PrivateERC721/IERC721Errors";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "sender",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "uint256",
21
+ name: "tokenId",
22
+ type: "uint256",
23
+ },
24
+ {
25
+ internalType: "address",
26
+ name: "owner",
27
+ type: "address",
28
+ },
29
+ ],
30
+ name: "ERC721IncorrectOwner",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [
35
+ {
36
+ internalType: "address",
37
+ name: "operator",
38
+ type: "address",
39
+ },
40
+ {
41
+ internalType: "uint256",
42
+ name: "tokenId",
43
+ type: "uint256",
44
+ },
45
+ ],
46
+ name: "ERC721InsufficientApproval",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [
51
+ {
52
+ internalType: "address",
53
+ name: "approver",
54
+ type: "address",
55
+ },
56
+ ],
57
+ name: "ERC721InvalidApprover",
58
+ type: "error",
59
+ },
60
+ {
61
+ inputs: [
62
+ {
63
+ internalType: "address",
64
+ name: "operator",
65
+ type: "address",
66
+ },
67
+ ],
68
+ name: "ERC721InvalidOperator",
69
+ type: "error",
70
+ },
71
+ {
72
+ inputs: [
73
+ {
74
+ internalType: "address",
75
+ name: "owner",
76
+ type: "address",
77
+ },
78
+ ],
79
+ name: "ERC721InvalidOwner",
80
+ type: "error",
81
+ },
82
+ {
83
+ inputs: [
84
+ {
85
+ internalType: "address",
86
+ name: "receiver",
87
+ type: "address",
88
+ },
89
+ ],
90
+ name: "ERC721InvalidReceiver",
91
+ type: "error",
92
+ },
93
+ {
94
+ inputs: [
95
+ {
96
+ internalType: "address",
97
+ name: "sender",
98
+ type: "address",
99
+ },
100
+ ],
101
+ name: "ERC721InvalidSender",
102
+ type: "error",
103
+ },
104
+ {
105
+ inputs: [
106
+ {
107
+ internalType: "uint256",
108
+ name: "tokenId",
109
+ type: "uint256",
110
+ },
111
+ ],
112
+ name: "ERC721NonexistentToken",
113
+ type: "error",
114
+ },
115
+ ] as const;
116
+
117
+ export class IERC721Errors__factory {
118
+ static readonly abi = _abi;
119
+ static createInterface(): IERC721ErrorsInterface {
120
+ return new Interface(_abi) as IERC721ErrorsInterface;
121
+ }
122
+ static connect(
123
+ address: string,
124
+ runner?: ContractRunner | null
125
+ ): IERC721Errors {
126
+ return new Contract(address, _abi, runner) as unknown as IERC721Errors;
127
+ }
128
+ }
@@ -2,4 +2,5 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  export * as extensions from "./extensions";
5
+ export { IERC721Errors__factory } from "./IERC721Errors__factory";
5
6
  export { PrivateERC721__factory } from "./PrivateERC721__factory";
@@ -0,0 +1,77 @@
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
+ MpcCore,
14
+ MpcCoreInterface,
15
+ } from "../../../../contracts/utils/mpc/MpcCore";
16
+
17
+ const _abi = [
18
+ {
19
+ inputs: [],
20
+ name: "RSA_SIZE",
21
+ outputs: [
22
+ {
23
+ internalType: "uint256",
24
+ name: "",
25
+ type: "uint256",
26
+ },
27
+ ],
28
+ stateMutability: "view",
29
+ type: "function",
30
+ },
31
+ ] as const;
32
+
33
+ const _bytecode =
34
+ "0x6088610038600b82828239805160001a607314602b57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361060335760003560e01c806331b943d5146038575b600080fd5b604061010081565b60405190815260200160405180910390f3fea26469706673582212206dadde1d79710197e10197637f9b02aadeabab1cb2acdebea5688b628b867a0464736f6c63430008130033";
35
+
36
+ type MpcCoreConstructorParams =
37
+ | [signer?: Signer]
38
+ | ConstructorParameters<typeof ContractFactory>;
39
+
40
+ const isSuperArgs = (
41
+ xs: MpcCoreConstructorParams
42
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
43
+
44
+ export class MpcCore__factory extends ContractFactory {
45
+ constructor(...args: MpcCoreConstructorParams) {
46
+ if (isSuperArgs(args)) {
47
+ super(...args);
48
+ } else {
49
+ super(_abi, _bytecode, args[0]);
50
+ }
51
+ }
52
+
53
+ override getDeployTransaction(
54
+ overrides?: NonPayableOverrides & { from?: string }
55
+ ): Promise<ContractDeployTransaction> {
56
+ return super.getDeployTransaction(overrides || {});
57
+ }
58
+ override deploy(overrides?: NonPayableOverrides & { from?: string }) {
59
+ return super.deploy(overrides || {}) as Promise<
60
+ MpcCore & {
61
+ deploymentTransaction(): ContractTransactionResponse;
62
+ }
63
+ >;
64
+ }
65
+ override connect(runner: ContractRunner | null): MpcCore__factory {
66
+ return super.connect(runner) as MpcCore__factory;
67
+ }
68
+
69
+ static readonly bytecode = _bytecode;
70
+ static readonly abi = _abi;
71
+ static createInterface(): MpcCoreInterface {
72
+ return new Interface(_abi) as MpcCoreInterface;
73
+ }
74
+ static connect(address: string, runner?: ContractRunner | null): MpcCore {
75
+ return new Contract(address, _abi, runner) as unknown as MpcCore;
76
+ }
77
+ }
@@ -67,6 +67,108 @@ const _abi = [
67
67
  stateMutability: "nonpayable",
68
68
  type: "function",
69
69
  },
70
+ {
71
+ inputs: [
72
+ {
73
+ internalType: "bytes3",
74
+ name: "metaData",
75
+ type: "bytes3",
76
+ },
77
+ {
78
+ internalType: "uint256",
79
+ name: "lhs",
80
+ type: "uint256",
81
+ },
82
+ {
83
+ internalType: "uint256",
84
+ name: "rhs",
85
+ type: "uint256",
86
+ },
87
+ ],
88
+ name: "CheckedAdd",
89
+ outputs: [
90
+ {
91
+ internalType: "uint256",
92
+ name: "overflowBit",
93
+ type: "uint256",
94
+ },
95
+ {
96
+ internalType: "uint256",
97
+ name: "result",
98
+ type: "uint256",
99
+ },
100
+ ],
101
+ stateMutability: "nonpayable",
102
+ type: "function",
103
+ },
104
+ {
105
+ inputs: [
106
+ {
107
+ internalType: "bytes3",
108
+ name: "metaData",
109
+ type: "bytes3",
110
+ },
111
+ {
112
+ internalType: "uint256",
113
+ name: "lhs",
114
+ type: "uint256",
115
+ },
116
+ {
117
+ internalType: "uint256",
118
+ name: "rhs",
119
+ type: "uint256",
120
+ },
121
+ ],
122
+ name: "CheckedMul",
123
+ outputs: [
124
+ {
125
+ internalType: "uint256",
126
+ name: "overflowBit",
127
+ type: "uint256",
128
+ },
129
+ {
130
+ internalType: "uint256",
131
+ name: "result",
132
+ type: "uint256",
133
+ },
134
+ ],
135
+ stateMutability: "nonpayable",
136
+ type: "function",
137
+ },
138
+ {
139
+ inputs: [
140
+ {
141
+ internalType: "bytes3",
142
+ name: "metaData",
143
+ type: "bytes3",
144
+ },
145
+ {
146
+ internalType: "uint256",
147
+ name: "lhs",
148
+ type: "uint256",
149
+ },
150
+ {
151
+ internalType: "uint256",
152
+ name: "rhs",
153
+ type: "uint256",
154
+ },
155
+ ],
156
+ name: "CheckedSub",
157
+ outputs: [
158
+ {
159
+ internalType: "uint256",
160
+ name: "overflowBit",
161
+ type: "uint256",
162
+ },
163
+ {
164
+ internalType: "uint256",
165
+ name: "result",
166
+ type: "uint256",
167
+ },
168
+ ],
169
+ stateMutability: "nonpayable",
170
+ type: "function",
171
+ },
70
172
  {
71
173
  inputs: [
72
174
  {
@@ -91,6 +193,25 @@ const _abi = [
91
193
  stateMutability: "nonpayable",
92
194
  type: "function",
93
195
  },
196
+ {
197
+ inputs: [
198
+ {
199
+ internalType: "bytes",
200
+ name: "signature",
201
+ type: "bytes",
202
+ },
203
+ ],
204
+ name: "DeleteUserKey",
205
+ outputs: [
206
+ {
207
+ internalType: "bool",
208
+ name: "",
209
+ type: "bool",
210
+ },
211
+ ],
212
+ stateMutability: "nonpayable",
213
+ type: "function",
214
+ },
94
215
  {
95
216
  inputs: [
96
217
  {
@@ -194,7 +315,7 @@ const _abi = [
194
315
  type: "bytes",
195
316
  },
196
317
  ],
197
- stateMutability: "view",
318
+ stateMutability: "nonpayable",
198
319
  type: "function",
199
320
  },
200
321
  {
@@ -660,64 +781,6 @@ const _abi = [
660
781
  stateMutability: "nonpayable",
661
782
  type: "function",
662
783
  },
663
- {
664
- inputs: [
665
- {
666
- internalType: "bytes3",
667
- name: "metaData",
668
- type: "bytes3",
669
- },
670
- {
671
- internalType: "uint256",
672
- name: "lhs",
673
- type: "uint256",
674
- },
675
- {
676
- internalType: "uint256",
677
- name: "rhs",
678
- type: "uint256",
679
- },
680
- ],
681
- name: "Shl",
682
- outputs: [
683
- {
684
- internalType: "uint256",
685
- name: "result",
686
- type: "uint256",
687
- },
688
- ],
689
- stateMutability: "nonpayable",
690
- type: "function",
691
- },
692
- {
693
- inputs: [
694
- {
695
- internalType: "bytes3",
696
- name: "metaData",
697
- type: "bytes3",
698
- },
699
- {
700
- internalType: "uint256",
701
- name: "lhs",
702
- type: "uint256",
703
- },
704
- {
705
- internalType: "uint256",
706
- name: "rhs",
707
- type: "uint256",
708
- },
709
- ],
710
- name: "Shr",
711
- outputs: [
712
- {
713
- internalType: "uint256",
714
- name: "result",
715
- type: "uint256",
716
- },
717
- ],
718
- stateMutability: "nonpayable",
719
- type: "function",
720
- },
721
784
  {
722
785
  inputs: [
723
786
  {
@@ -794,9 +857,9 @@ const _abi = [
794
857
  {
795
858
  inputs: [
796
859
  {
797
- internalType: "bytes4",
860
+ internalType: "bytes5",
798
861
  name: "metaData",
799
- type: "bytes4",
862
+ type: "bytes5",
800
863
  },
801
864
  {
802
865
  internalType: "uint256",
@@ -2,3 +2,4 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  export * as mpcInterfaceSol from "./MpcInterface.sol";
5
+ export { MpcCore__factory } from "./MpcCore__factory";