@cofhe/mock-contracts 0.5.2 → 0.6.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/CHANGELOG.md +8 -0
- package/README.md +15 -13
- package/dist/index.d.mts +1 -332
- package/dist/index.d.ts +1 -332
- package/dist/index.js +0 -309
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -309
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +1 -2
- package/src/typechain-types/index.ts +0 -1
- package/contracts/TestBed.sol +0 -103
- package/src/TestBed.ts +0 -309
- package/src/typechain-types/TestBed.ts +0 -172
package/dist/index.d.ts
CHANGED
|
@@ -2005,243 +2005,6 @@ declare const MockThresholdNetworkArtifact: {
|
|
|
2005
2005
|
}];
|
|
2006
2006
|
};
|
|
2007
2007
|
|
|
2008
|
-
declare const TestBedArtifact: {
|
|
2009
|
-
readonly contractName: "TestBed";
|
|
2010
|
-
readonly isFixed: true;
|
|
2011
|
-
readonly fixedAddress: "0x0000000000000000000000000000000000005003";
|
|
2012
|
-
readonly abi: readonly [{
|
|
2013
|
-
readonly type: "function";
|
|
2014
|
-
readonly name: "add";
|
|
2015
|
-
readonly inputs: readonly [{
|
|
2016
|
-
readonly name: "inNumber";
|
|
2017
|
-
readonly type: "tuple";
|
|
2018
|
-
readonly internalType: "struct InEuint32";
|
|
2019
|
-
readonly components: readonly [{
|
|
2020
|
-
readonly name: "ctHash";
|
|
2021
|
-
readonly type: "uint256";
|
|
2022
|
-
readonly internalType: "uint256";
|
|
2023
|
-
}, {
|
|
2024
|
-
readonly name: "securityZone";
|
|
2025
|
-
readonly type: "uint8";
|
|
2026
|
-
readonly internalType: "uint8";
|
|
2027
|
-
}, {
|
|
2028
|
-
readonly name: "utype";
|
|
2029
|
-
readonly type: "uint8";
|
|
2030
|
-
readonly internalType: "uint8";
|
|
2031
|
-
}, {
|
|
2032
|
-
readonly name: "signature";
|
|
2033
|
-
readonly type: "bytes";
|
|
2034
|
-
readonly internalType: "bytes";
|
|
2035
|
-
}];
|
|
2036
|
-
}];
|
|
2037
|
-
readonly outputs: readonly [];
|
|
2038
|
-
readonly stateMutability: "nonpayable";
|
|
2039
|
-
}, {
|
|
2040
|
-
readonly type: "function";
|
|
2041
|
-
readonly name: "decrypt";
|
|
2042
|
-
readonly inputs: readonly [];
|
|
2043
|
-
readonly outputs: readonly [];
|
|
2044
|
-
readonly stateMutability: "nonpayable";
|
|
2045
|
-
}, {
|
|
2046
|
-
readonly type: "function";
|
|
2047
|
-
readonly name: "eNumber";
|
|
2048
|
-
readonly inputs: readonly [];
|
|
2049
|
-
readonly outputs: readonly [{
|
|
2050
|
-
readonly name: "";
|
|
2051
|
-
readonly type: "bytes32";
|
|
2052
|
-
readonly internalType: "euint32";
|
|
2053
|
-
}];
|
|
2054
|
-
readonly stateMutability: "view";
|
|
2055
|
-
}, {
|
|
2056
|
-
readonly type: "function";
|
|
2057
|
-
readonly name: "exists";
|
|
2058
|
-
readonly inputs: readonly [];
|
|
2059
|
-
readonly outputs: readonly [{
|
|
2060
|
-
readonly name: "";
|
|
2061
|
-
readonly type: "bool";
|
|
2062
|
-
readonly internalType: "bool";
|
|
2063
|
-
}];
|
|
2064
|
-
readonly stateMutability: "pure";
|
|
2065
|
-
}, {
|
|
2066
|
-
readonly type: "function";
|
|
2067
|
-
readonly name: "getDecryptResult";
|
|
2068
|
-
readonly inputs: readonly [{
|
|
2069
|
-
readonly name: "input1";
|
|
2070
|
-
readonly type: "bytes32";
|
|
2071
|
-
readonly internalType: "euint32";
|
|
2072
|
-
}];
|
|
2073
|
-
readonly outputs: readonly [{
|
|
2074
|
-
readonly name: "";
|
|
2075
|
-
readonly type: "uint32";
|
|
2076
|
-
readonly internalType: "uint32";
|
|
2077
|
-
}];
|
|
2078
|
-
readonly stateMutability: "view";
|
|
2079
|
-
}, {
|
|
2080
|
-
readonly type: "function";
|
|
2081
|
-
readonly name: "getDecryptResultSafe";
|
|
2082
|
-
readonly inputs: readonly [{
|
|
2083
|
-
readonly name: "input1";
|
|
2084
|
-
readonly type: "bytes32";
|
|
2085
|
-
readonly internalType: "euint32";
|
|
2086
|
-
}];
|
|
2087
|
-
readonly outputs: readonly [{
|
|
2088
|
-
readonly name: "value";
|
|
2089
|
-
readonly type: "uint32";
|
|
2090
|
-
readonly internalType: "uint32";
|
|
2091
|
-
}, {
|
|
2092
|
-
readonly name: "decrypted";
|
|
2093
|
-
readonly type: "bool";
|
|
2094
|
-
readonly internalType: "bool";
|
|
2095
|
-
}];
|
|
2096
|
-
readonly stateMutability: "view";
|
|
2097
|
-
}, {
|
|
2098
|
-
readonly type: "function";
|
|
2099
|
-
readonly name: "increment";
|
|
2100
|
-
readonly inputs: readonly [];
|
|
2101
|
-
readonly outputs: readonly [];
|
|
2102
|
-
readonly stateMutability: "nonpayable";
|
|
2103
|
-
}, {
|
|
2104
|
-
readonly type: "function";
|
|
2105
|
-
readonly name: "mul";
|
|
2106
|
-
readonly inputs: readonly [{
|
|
2107
|
-
readonly name: "inNumber";
|
|
2108
|
-
readonly type: "tuple";
|
|
2109
|
-
readonly internalType: "struct InEuint32";
|
|
2110
|
-
readonly components: readonly [{
|
|
2111
|
-
readonly name: "ctHash";
|
|
2112
|
-
readonly type: "uint256";
|
|
2113
|
-
readonly internalType: "uint256";
|
|
2114
|
-
}, {
|
|
2115
|
-
readonly name: "securityZone";
|
|
2116
|
-
readonly type: "uint8";
|
|
2117
|
-
readonly internalType: "uint8";
|
|
2118
|
-
}, {
|
|
2119
|
-
readonly name: "utype";
|
|
2120
|
-
readonly type: "uint8";
|
|
2121
|
-
readonly internalType: "uint8";
|
|
2122
|
-
}, {
|
|
2123
|
-
readonly name: "signature";
|
|
2124
|
-
readonly type: "bytes";
|
|
2125
|
-
readonly internalType: "bytes";
|
|
2126
|
-
}];
|
|
2127
|
-
}];
|
|
2128
|
-
readonly outputs: readonly [];
|
|
2129
|
-
readonly stateMutability: "nonpayable";
|
|
2130
|
-
}, {
|
|
2131
|
-
readonly type: "function";
|
|
2132
|
-
readonly name: "numberHash";
|
|
2133
|
-
readonly inputs: readonly [];
|
|
2134
|
-
readonly outputs: readonly [{
|
|
2135
|
-
readonly name: "";
|
|
2136
|
-
readonly type: "bytes32";
|
|
2137
|
-
readonly internalType: "bytes32";
|
|
2138
|
-
}];
|
|
2139
|
-
readonly stateMutability: "view";
|
|
2140
|
-
}, {
|
|
2141
|
-
readonly type: "function";
|
|
2142
|
-
readonly name: "publishDecryptResult";
|
|
2143
|
-
readonly inputs: readonly [{
|
|
2144
|
-
readonly name: "input";
|
|
2145
|
-
readonly type: "bytes32";
|
|
2146
|
-
readonly internalType: "euint32";
|
|
2147
|
-
}, {
|
|
2148
|
-
readonly name: "result";
|
|
2149
|
-
readonly type: "uint32";
|
|
2150
|
-
readonly internalType: "uint32";
|
|
2151
|
-
}, {
|
|
2152
|
-
readonly name: "signature";
|
|
2153
|
-
readonly type: "bytes";
|
|
2154
|
-
readonly internalType: "bytes";
|
|
2155
|
-
}];
|
|
2156
|
-
readonly outputs: readonly [];
|
|
2157
|
-
readonly stateMutability: "nonpayable";
|
|
2158
|
-
}, {
|
|
2159
|
-
readonly type: "function";
|
|
2160
|
-
readonly name: "setNumber";
|
|
2161
|
-
readonly inputs: readonly [{
|
|
2162
|
-
readonly name: "inNumber";
|
|
2163
|
-
readonly type: "tuple";
|
|
2164
|
-
readonly internalType: "struct InEuint32";
|
|
2165
|
-
readonly components: readonly [{
|
|
2166
|
-
readonly name: "ctHash";
|
|
2167
|
-
readonly type: "uint256";
|
|
2168
|
-
readonly internalType: "uint256";
|
|
2169
|
-
}, {
|
|
2170
|
-
readonly name: "securityZone";
|
|
2171
|
-
readonly type: "uint8";
|
|
2172
|
-
readonly internalType: "uint8";
|
|
2173
|
-
}, {
|
|
2174
|
-
readonly name: "utype";
|
|
2175
|
-
readonly type: "uint8";
|
|
2176
|
-
readonly internalType: "uint8";
|
|
2177
|
-
}, {
|
|
2178
|
-
readonly name: "signature";
|
|
2179
|
-
readonly type: "bytes";
|
|
2180
|
-
readonly internalType: "bytes";
|
|
2181
|
-
}];
|
|
2182
|
-
}];
|
|
2183
|
-
readonly outputs: readonly [];
|
|
2184
|
-
readonly stateMutability: "nonpayable";
|
|
2185
|
-
}, {
|
|
2186
|
-
readonly type: "function";
|
|
2187
|
-
readonly name: "setNumberTrivial";
|
|
2188
|
-
readonly inputs: readonly [{
|
|
2189
|
-
readonly name: "inNumber";
|
|
2190
|
-
readonly type: "uint32";
|
|
2191
|
-
readonly internalType: "uint32";
|
|
2192
|
-
}];
|
|
2193
|
-
readonly outputs: readonly [];
|
|
2194
|
-
readonly stateMutability: "nonpayable";
|
|
2195
|
-
}, {
|
|
2196
|
-
readonly type: "function";
|
|
2197
|
-
readonly name: "sub";
|
|
2198
|
-
readonly inputs: readonly [{
|
|
2199
|
-
readonly name: "inNumber";
|
|
2200
|
-
readonly type: "tuple";
|
|
2201
|
-
readonly internalType: "struct InEuint32";
|
|
2202
|
-
readonly components: readonly [{
|
|
2203
|
-
readonly name: "ctHash";
|
|
2204
|
-
readonly type: "uint256";
|
|
2205
|
-
readonly internalType: "uint256";
|
|
2206
|
-
}, {
|
|
2207
|
-
readonly name: "securityZone";
|
|
2208
|
-
readonly type: "uint8";
|
|
2209
|
-
readonly internalType: "uint8";
|
|
2210
|
-
}, {
|
|
2211
|
-
readonly name: "utype";
|
|
2212
|
-
readonly type: "uint8";
|
|
2213
|
-
readonly internalType: "uint8";
|
|
2214
|
-
}, {
|
|
2215
|
-
readonly name: "signature";
|
|
2216
|
-
readonly type: "bytes";
|
|
2217
|
-
readonly internalType: "bytes";
|
|
2218
|
-
}];
|
|
2219
|
-
}];
|
|
2220
|
-
readonly outputs: readonly [];
|
|
2221
|
-
readonly stateMutability: "nonpayable";
|
|
2222
|
-
}, {
|
|
2223
|
-
readonly type: "error";
|
|
2224
|
-
readonly name: "InvalidEncryptedInput";
|
|
2225
|
-
readonly inputs: readonly [{
|
|
2226
|
-
readonly name: "got";
|
|
2227
|
-
readonly type: "uint8";
|
|
2228
|
-
readonly internalType: "uint8";
|
|
2229
|
-
}, {
|
|
2230
|
-
readonly name: "expected";
|
|
2231
|
-
readonly type: "uint8";
|
|
2232
|
-
readonly internalType: "uint8";
|
|
2233
|
-
}];
|
|
2234
|
-
}, {
|
|
2235
|
-
readonly type: "error";
|
|
2236
|
-
readonly name: "SecurityZoneOutOfBounds";
|
|
2237
|
-
readonly inputs: readonly [{
|
|
2238
|
-
readonly name: "value";
|
|
2239
|
-
readonly type: "int32";
|
|
2240
|
-
readonly internalType: "int32";
|
|
2241
|
-
}];
|
|
2242
|
-
}];
|
|
2243
|
-
};
|
|
2244
|
-
|
|
2245
2008
|
interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
|
|
2246
2009
|
}
|
|
2247
2010
|
interface TypedContractEvent<InputTuple extends Array<any> = any, OutputTuple extends Array<any> = any, OutputObject = any> {
|
|
@@ -3165,98 +2928,4 @@ interface MockZkVerifier extends BaseContract {
|
|
|
3165
2928
|
filters: {};
|
|
3166
2929
|
}
|
|
3167
2930
|
|
|
3168
|
-
type
|
|
3169
|
-
ctHash: BigNumberish;
|
|
3170
|
-
securityZone: BigNumberish;
|
|
3171
|
-
utype: BigNumberish;
|
|
3172
|
-
signature: BytesLike;
|
|
3173
|
-
};
|
|
3174
|
-
interface TestBedInterface extends Interface {
|
|
3175
|
-
getFunction(nameOrSignature: 'add' | 'decrypt' | 'eNumber' | 'exists' | 'getDecryptResult' | 'getDecryptResultSafe' | 'increment' | 'mul' | 'numberHash' | 'publishDecryptResult' | 'setNumber' | 'setNumberTrivial' | 'sub'): FunctionFragment;
|
|
3176
|
-
encodeFunctionData(functionFragment: 'add', values: [InEuint32Struct]): string;
|
|
3177
|
-
encodeFunctionData(functionFragment: 'decrypt', values?: undefined): string;
|
|
3178
|
-
encodeFunctionData(functionFragment: 'eNumber', values?: undefined): string;
|
|
3179
|
-
encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
|
|
3180
|
-
encodeFunctionData(functionFragment: 'getDecryptResult', values: [BytesLike]): string;
|
|
3181
|
-
encodeFunctionData(functionFragment: 'getDecryptResultSafe', values: [BytesLike]): string;
|
|
3182
|
-
encodeFunctionData(functionFragment: 'increment', values?: undefined): string;
|
|
3183
|
-
encodeFunctionData(functionFragment: 'mul', values: [InEuint32Struct]): string;
|
|
3184
|
-
encodeFunctionData(functionFragment: 'numberHash', values?: undefined): string;
|
|
3185
|
-
encodeFunctionData(functionFragment: 'publishDecryptResult', values: [BytesLike, BigNumberish, BytesLike]): string;
|
|
3186
|
-
encodeFunctionData(functionFragment: 'setNumber', values: [InEuint32Struct]): string;
|
|
3187
|
-
encodeFunctionData(functionFragment: 'setNumberTrivial', values: [BigNumberish]): string;
|
|
3188
|
-
encodeFunctionData(functionFragment: 'sub', values: [InEuint32Struct]): string;
|
|
3189
|
-
decodeFunctionResult(functionFragment: 'add', data: BytesLike): Result;
|
|
3190
|
-
decodeFunctionResult(functionFragment: 'decrypt', data: BytesLike): Result;
|
|
3191
|
-
decodeFunctionResult(functionFragment: 'eNumber', data: BytesLike): Result;
|
|
3192
|
-
decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
|
|
3193
|
-
decodeFunctionResult(functionFragment: 'getDecryptResult', data: BytesLike): Result;
|
|
3194
|
-
decodeFunctionResult(functionFragment: 'getDecryptResultSafe', data: BytesLike): Result;
|
|
3195
|
-
decodeFunctionResult(functionFragment: 'increment', data: BytesLike): Result;
|
|
3196
|
-
decodeFunctionResult(functionFragment: 'mul', data: BytesLike): Result;
|
|
3197
|
-
decodeFunctionResult(functionFragment: 'numberHash', data: BytesLike): Result;
|
|
3198
|
-
decodeFunctionResult(functionFragment: 'publishDecryptResult', data: BytesLike): Result;
|
|
3199
|
-
decodeFunctionResult(functionFragment: 'setNumber', data: BytesLike): Result;
|
|
3200
|
-
decodeFunctionResult(functionFragment: 'setNumberTrivial', data: BytesLike): Result;
|
|
3201
|
-
decodeFunctionResult(functionFragment: 'sub', data: BytesLike): Result;
|
|
3202
|
-
}
|
|
3203
|
-
interface TestBed extends BaseContract {
|
|
3204
|
-
connect(runner?: ContractRunner | null): TestBed;
|
|
3205
|
-
waitForDeployment(): Promise<this>;
|
|
3206
|
-
interface: TestBedInterface;
|
|
3207
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3208
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3209
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3210
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3211
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3212
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3213
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
3214
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
3215
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
3216
|
-
add: TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
3217
|
-
decrypt: TypedContractMethod<[], [void], 'nonpayable'>;
|
|
3218
|
-
eNumber: TypedContractMethod<[], [string], 'view'>;
|
|
3219
|
-
exists: TypedContractMethod<[], [boolean], 'view'>;
|
|
3220
|
-
getDecryptResult: TypedContractMethod<[input1: BytesLike], [bigint], 'view'>;
|
|
3221
|
-
getDecryptResultSafe: TypedContractMethod<[
|
|
3222
|
-
input1: BytesLike
|
|
3223
|
-
], [
|
|
3224
|
-
[bigint, boolean] & {
|
|
3225
|
-
value: bigint;
|
|
3226
|
-
decrypted: boolean;
|
|
3227
|
-
}
|
|
3228
|
-
], 'view'>;
|
|
3229
|
-
increment: TypedContractMethod<[], [void], 'nonpayable'>;
|
|
3230
|
-
mul: TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
3231
|
-
numberHash: TypedContractMethod<[], [string], 'view'>;
|
|
3232
|
-
publishDecryptResult: TypedContractMethod<[
|
|
3233
|
-
input: BytesLike,
|
|
3234
|
-
result: BigNumberish,
|
|
3235
|
-
signature: BytesLike
|
|
3236
|
-
], [
|
|
3237
|
-
void
|
|
3238
|
-
], 'nonpayable'>;
|
|
3239
|
-
setNumber: TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
3240
|
-
setNumberTrivial: TypedContractMethod<[inNumber: BigNumberish], [void], 'nonpayable'>;
|
|
3241
|
-
sub: TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
3242
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3243
|
-
getFunction(nameOrSignature: 'add'): TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
3244
|
-
getFunction(nameOrSignature: 'decrypt'): TypedContractMethod<[], [void], 'nonpayable'>;
|
|
3245
|
-
getFunction(nameOrSignature: 'eNumber'): TypedContractMethod<[], [string], 'view'>;
|
|
3246
|
-
getFunction(nameOrSignature: 'exists'): TypedContractMethod<[], [boolean], 'view'>;
|
|
3247
|
-
getFunction(nameOrSignature: 'getDecryptResult'): TypedContractMethod<[input1: BytesLike], [bigint], 'view'>;
|
|
3248
|
-
getFunction(nameOrSignature: 'getDecryptResultSafe'): TypedContractMethod<[input1: BytesLike], [[bigint, boolean] & {
|
|
3249
|
-
value: bigint;
|
|
3250
|
-
decrypted: boolean;
|
|
3251
|
-
}], 'view'>;
|
|
3252
|
-
getFunction(nameOrSignature: 'increment'): TypedContractMethod<[], [void], 'nonpayable'>;
|
|
3253
|
-
getFunction(nameOrSignature: 'mul'): TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
3254
|
-
getFunction(nameOrSignature: 'numberHash'): TypedContractMethod<[], [string], 'view'>;
|
|
3255
|
-
getFunction(nameOrSignature: 'publishDecryptResult'): TypedContractMethod<[input: BytesLike, result: BigNumberish, signature: BytesLike], [void], 'nonpayable'>;
|
|
3256
|
-
getFunction(nameOrSignature: 'setNumber'): TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
3257
|
-
getFunction(nameOrSignature: 'setNumberTrivial'): TypedContractMethod<[inNumber: BigNumberish], [void], 'nonpayable'>;
|
|
3258
|
-
getFunction(nameOrSignature: 'sub'): TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
3259
|
-
filters: {};
|
|
3260
|
-
}
|
|
3261
|
-
|
|
3262
|
-
export { type MockACL, MockACLArtifact, type MockArtifact, type MockTaskManager, MockTaskManagerArtifact, type MockThresholdNetwork, MockThresholdNetworkArtifact, type MockZkVerifier, MockZkVerifierArtifact, type TestBed, TestBedArtifact };
|
|
2931
|
+
export { type MockACL, MockACLArtifact, type MockArtifact, type MockTaskManager, MockTaskManagerArtifact, type MockThresholdNetwork, MockThresholdNetworkArtifact, type MockZkVerifier, MockZkVerifierArtifact };
|
package/dist/index.js
CHANGED
|
@@ -2600,318 +2600,9 @@ var MockThresholdNetworkArtifact = {
|
|
|
2600
2600
|
]
|
|
2601
2601
|
};
|
|
2602
2602
|
|
|
2603
|
-
// src/TestBed.ts
|
|
2604
|
-
var TestBedArtifact = {
|
|
2605
|
-
contractName: "TestBed",
|
|
2606
|
-
isFixed: true,
|
|
2607
|
-
fixedAddress: "0x0000000000000000000000000000000000005003",
|
|
2608
|
-
abi: [
|
|
2609
|
-
{
|
|
2610
|
-
type: "function",
|
|
2611
|
-
name: "add",
|
|
2612
|
-
inputs: [
|
|
2613
|
-
{
|
|
2614
|
-
name: "inNumber",
|
|
2615
|
-
type: "tuple",
|
|
2616
|
-
internalType: "struct InEuint32",
|
|
2617
|
-
components: [
|
|
2618
|
-
{
|
|
2619
|
-
name: "ctHash",
|
|
2620
|
-
type: "uint256",
|
|
2621
|
-
internalType: "uint256"
|
|
2622
|
-
},
|
|
2623
|
-
{
|
|
2624
|
-
name: "securityZone",
|
|
2625
|
-
type: "uint8",
|
|
2626
|
-
internalType: "uint8"
|
|
2627
|
-
},
|
|
2628
|
-
{
|
|
2629
|
-
name: "utype",
|
|
2630
|
-
type: "uint8",
|
|
2631
|
-
internalType: "uint8"
|
|
2632
|
-
},
|
|
2633
|
-
{
|
|
2634
|
-
name: "signature",
|
|
2635
|
-
type: "bytes",
|
|
2636
|
-
internalType: "bytes"
|
|
2637
|
-
}
|
|
2638
|
-
]
|
|
2639
|
-
}
|
|
2640
|
-
],
|
|
2641
|
-
outputs: [],
|
|
2642
|
-
stateMutability: "nonpayable"
|
|
2643
|
-
},
|
|
2644
|
-
{
|
|
2645
|
-
type: "function",
|
|
2646
|
-
name: "decrypt",
|
|
2647
|
-
inputs: [],
|
|
2648
|
-
outputs: [],
|
|
2649
|
-
stateMutability: "nonpayable"
|
|
2650
|
-
},
|
|
2651
|
-
{
|
|
2652
|
-
type: "function",
|
|
2653
|
-
name: "eNumber",
|
|
2654
|
-
inputs: [],
|
|
2655
|
-
outputs: [
|
|
2656
|
-
{
|
|
2657
|
-
name: "",
|
|
2658
|
-
type: "bytes32",
|
|
2659
|
-
internalType: "euint32"
|
|
2660
|
-
}
|
|
2661
|
-
],
|
|
2662
|
-
stateMutability: "view"
|
|
2663
|
-
},
|
|
2664
|
-
{
|
|
2665
|
-
type: "function",
|
|
2666
|
-
name: "exists",
|
|
2667
|
-
inputs: [],
|
|
2668
|
-
outputs: [
|
|
2669
|
-
{
|
|
2670
|
-
name: "",
|
|
2671
|
-
type: "bool",
|
|
2672
|
-
internalType: "bool"
|
|
2673
|
-
}
|
|
2674
|
-
],
|
|
2675
|
-
stateMutability: "pure"
|
|
2676
|
-
},
|
|
2677
|
-
{
|
|
2678
|
-
type: "function",
|
|
2679
|
-
name: "getDecryptResult",
|
|
2680
|
-
inputs: [
|
|
2681
|
-
{
|
|
2682
|
-
name: "input1",
|
|
2683
|
-
type: "bytes32",
|
|
2684
|
-
internalType: "euint32"
|
|
2685
|
-
}
|
|
2686
|
-
],
|
|
2687
|
-
outputs: [
|
|
2688
|
-
{
|
|
2689
|
-
name: "",
|
|
2690
|
-
type: "uint32",
|
|
2691
|
-
internalType: "uint32"
|
|
2692
|
-
}
|
|
2693
|
-
],
|
|
2694
|
-
stateMutability: "view"
|
|
2695
|
-
},
|
|
2696
|
-
{
|
|
2697
|
-
type: "function",
|
|
2698
|
-
name: "getDecryptResultSafe",
|
|
2699
|
-
inputs: [
|
|
2700
|
-
{
|
|
2701
|
-
name: "input1",
|
|
2702
|
-
type: "bytes32",
|
|
2703
|
-
internalType: "euint32"
|
|
2704
|
-
}
|
|
2705
|
-
],
|
|
2706
|
-
outputs: [
|
|
2707
|
-
{
|
|
2708
|
-
name: "value",
|
|
2709
|
-
type: "uint32",
|
|
2710
|
-
internalType: "uint32"
|
|
2711
|
-
},
|
|
2712
|
-
{
|
|
2713
|
-
name: "decrypted",
|
|
2714
|
-
type: "bool",
|
|
2715
|
-
internalType: "bool"
|
|
2716
|
-
}
|
|
2717
|
-
],
|
|
2718
|
-
stateMutability: "view"
|
|
2719
|
-
},
|
|
2720
|
-
{
|
|
2721
|
-
type: "function",
|
|
2722
|
-
name: "increment",
|
|
2723
|
-
inputs: [],
|
|
2724
|
-
outputs: [],
|
|
2725
|
-
stateMutability: "nonpayable"
|
|
2726
|
-
},
|
|
2727
|
-
{
|
|
2728
|
-
type: "function",
|
|
2729
|
-
name: "mul",
|
|
2730
|
-
inputs: [
|
|
2731
|
-
{
|
|
2732
|
-
name: "inNumber",
|
|
2733
|
-
type: "tuple",
|
|
2734
|
-
internalType: "struct InEuint32",
|
|
2735
|
-
components: [
|
|
2736
|
-
{
|
|
2737
|
-
name: "ctHash",
|
|
2738
|
-
type: "uint256",
|
|
2739
|
-
internalType: "uint256"
|
|
2740
|
-
},
|
|
2741
|
-
{
|
|
2742
|
-
name: "securityZone",
|
|
2743
|
-
type: "uint8",
|
|
2744
|
-
internalType: "uint8"
|
|
2745
|
-
},
|
|
2746
|
-
{
|
|
2747
|
-
name: "utype",
|
|
2748
|
-
type: "uint8",
|
|
2749
|
-
internalType: "uint8"
|
|
2750
|
-
},
|
|
2751
|
-
{
|
|
2752
|
-
name: "signature",
|
|
2753
|
-
type: "bytes",
|
|
2754
|
-
internalType: "bytes"
|
|
2755
|
-
}
|
|
2756
|
-
]
|
|
2757
|
-
}
|
|
2758
|
-
],
|
|
2759
|
-
outputs: [],
|
|
2760
|
-
stateMutability: "nonpayable"
|
|
2761
|
-
},
|
|
2762
|
-
{
|
|
2763
|
-
type: "function",
|
|
2764
|
-
name: "numberHash",
|
|
2765
|
-
inputs: [],
|
|
2766
|
-
outputs: [
|
|
2767
|
-
{
|
|
2768
|
-
name: "",
|
|
2769
|
-
type: "bytes32",
|
|
2770
|
-
internalType: "bytes32"
|
|
2771
|
-
}
|
|
2772
|
-
],
|
|
2773
|
-
stateMutability: "view"
|
|
2774
|
-
},
|
|
2775
|
-
{
|
|
2776
|
-
type: "function",
|
|
2777
|
-
name: "publishDecryptResult",
|
|
2778
|
-
inputs: [
|
|
2779
|
-
{
|
|
2780
|
-
name: "input",
|
|
2781
|
-
type: "bytes32",
|
|
2782
|
-
internalType: "euint32"
|
|
2783
|
-
},
|
|
2784
|
-
{
|
|
2785
|
-
name: "result",
|
|
2786
|
-
type: "uint32",
|
|
2787
|
-
internalType: "uint32"
|
|
2788
|
-
},
|
|
2789
|
-
{
|
|
2790
|
-
name: "signature",
|
|
2791
|
-
type: "bytes",
|
|
2792
|
-
internalType: "bytes"
|
|
2793
|
-
}
|
|
2794
|
-
],
|
|
2795
|
-
outputs: [],
|
|
2796
|
-
stateMutability: "nonpayable"
|
|
2797
|
-
},
|
|
2798
|
-
{
|
|
2799
|
-
type: "function",
|
|
2800
|
-
name: "setNumber",
|
|
2801
|
-
inputs: [
|
|
2802
|
-
{
|
|
2803
|
-
name: "inNumber",
|
|
2804
|
-
type: "tuple",
|
|
2805
|
-
internalType: "struct InEuint32",
|
|
2806
|
-
components: [
|
|
2807
|
-
{
|
|
2808
|
-
name: "ctHash",
|
|
2809
|
-
type: "uint256",
|
|
2810
|
-
internalType: "uint256"
|
|
2811
|
-
},
|
|
2812
|
-
{
|
|
2813
|
-
name: "securityZone",
|
|
2814
|
-
type: "uint8",
|
|
2815
|
-
internalType: "uint8"
|
|
2816
|
-
},
|
|
2817
|
-
{
|
|
2818
|
-
name: "utype",
|
|
2819
|
-
type: "uint8",
|
|
2820
|
-
internalType: "uint8"
|
|
2821
|
-
},
|
|
2822
|
-
{
|
|
2823
|
-
name: "signature",
|
|
2824
|
-
type: "bytes",
|
|
2825
|
-
internalType: "bytes"
|
|
2826
|
-
}
|
|
2827
|
-
]
|
|
2828
|
-
}
|
|
2829
|
-
],
|
|
2830
|
-
outputs: [],
|
|
2831
|
-
stateMutability: "nonpayable"
|
|
2832
|
-
},
|
|
2833
|
-
{
|
|
2834
|
-
type: "function",
|
|
2835
|
-
name: "setNumberTrivial",
|
|
2836
|
-
inputs: [
|
|
2837
|
-
{
|
|
2838
|
-
name: "inNumber",
|
|
2839
|
-
type: "uint32",
|
|
2840
|
-
internalType: "uint32"
|
|
2841
|
-
}
|
|
2842
|
-
],
|
|
2843
|
-
outputs: [],
|
|
2844
|
-
stateMutability: "nonpayable"
|
|
2845
|
-
},
|
|
2846
|
-
{
|
|
2847
|
-
type: "function",
|
|
2848
|
-
name: "sub",
|
|
2849
|
-
inputs: [
|
|
2850
|
-
{
|
|
2851
|
-
name: "inNumber",
|
|
2852
|
-
type: "tuple",
|
|
2853
|
-
internalType: "struct InEuint32",
|
|
2854
|
-
components: [
|
|
2855
|
-
{
|
|
2856
|
-
name: "ctHash",
|
|
2857
|
-
type: "uint256",
|
|
2858
|
-
internalType: "uint256"
|
|
2859
|
-
},
|
|
2860
|
-
{
|
|
2861
|
-
name: "securityZone",
|
|
2862
|
-
type: "uint8",
|
|
2863
|
-
internalType: "uint8"
|
|
2864
|
-
},
|
|
2865
|
-
{
|
|
2866
|
-
name: "utype",
|
|
2867
|
-
type: "uint8",
|
|
2868
|
-
internalType: "uint8"
|
|
2869
|
-
},
|
|
2870
|
-
{
|
|
2871
|
-
name: "signature",
|
|
2872
|
-
type: "bytes",
|
|
2873
|
-
internalType: "bytes"
|
|
2874
|
-
}
|
|
2875
|
-
]
|
|
2876
|
-
}
|
|
2877
|
-
],
|
|
2878
|
-
outputs: [],
|
|
2879
|
-
stateMutability: "nonpayable"
|
|
2880
|
-
},
|
|
2881
|
-
{
|
|
2882
|
-
type: "error",
|
|
2883
|
-
name: "InvalidEncryptedInput",
|
|
2884
|
-
inputs: [
|
|
2885
|
-
{
|
|
2886
|
-
name: "got",
|
|
2887
|
-
type: "uint8",
|
|
2888
|
-
internalType: "uint8"
|
|
2889
|
-
},
|
|
2890
|
-
{
|
|
2891
|
-
name: "expected",
|
|
2892
|
-
type: "uint8",
|
|
2893
|
-
internalType: "uint8"
|
|
2894
|
-
}
|
|
2895
|
-
]
|
|
2896
|
-
},
|
|
2897
|
-
{
|
|
2898
|
-
type: "error",
|
|
2899
|
-
name: "SecurityZoneOutOfBounds",
|
|
2900
|
-
inputs: [
|
|
2901
|
-
{
|
|
2902
|
-
name: "value",
|
|
2903
|
-
type: "int32",
|
|
2904
|
-
internalType: "int32"
|
|
2905
|
-
}
|
|
2906
|
-
]
|
|
2907
|
-
}
|
|
2908
|
-
]
|
|
2909
|
-
};
|
|
2910
|
-
|
|
2911
2603
|
exports.MockACLArtifact = MockACLArtifact;
|
|
2912
2604
|
exports.MockTaskManagerArtifact = MockTaskManagerArtifact;
|
|
2913
2605
|
exports.MockThresholdNetworkArtifact = MockThresholdNetworkArtifact;
|
|
2914
2606
|
exports.MockZkVerifierArtifact = MockZkVerifierArtifact;
|
|
2915
|
-
exports.TestBedArtifact = TestBedArtifact;
|
|
2916
2607
|
//# sourceMappingURL=index.js.map
|
|
2917
2608
|
//# sourceMappingURL=index.js.map
|