@verify-network/contracts 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +114 -2
- package/contracts/IDirectVrfReceiver.sol +17 -0
- package/contracts/IVerifyNetworkRouter.sol +40 -0
- package/contracts/IVrfReceiver.sol +14 -0
- package/dist/abi/Balances.d.ts +32 -0
- package/dist/abi/Balances.js +36 -0
- package/dist/abi/BalancesFacet.d.ts +110 -0
- package/dist/abi/BalancesFacet.js +130 -0
- package/dist/abi/Config.d.ts +12 -0
- package/dist/abi/Config.js +12 -0
- package/dist/abi/ConfigFacet.d.ts +360 -0
- package/dist/abi/ConfigFacet.js +412 -0
- package/dist/abi/ECVRFVerifier.d.ts +34 -0
- package/dist/abi/ECVRFVerifier.js +38 -0
- package/dist/abi/IDirectVrfReceiver.d.ts +26 -0
- package/dist/abi/IDirectVrfReceiver.js +31 -0
- package/dist/abi/IECVRFVerifier.d.ts +30 -0
- package/dist/abi/IECVRFVerifier.js +34 -0
- package/dist/abi/IEnclaveAttestationVerifier.d.ts +26 -0
- package/dist/abi/IEnclaveAttestationVerifier.js +30 -0
- package/dist/abi/INitroEnclaveVerifier.d.ts +806 -0
- package/dist/abi/INitroEnclaveVerifier.js +941 -0
- package/dist/abi/INitroProofVerifier.d.ts +81 -0
- package/dist/abi/INitroProofVerifier.js +95 -0
- package/dist/abi/ISP1Verifier.d.ts +22 -0
- package/dist/abi/ISP1Verifier.js +26 -0
- package/dist/abi/ISP1VerifierWithHash.d.ts +32 -0
- package/dist/abi/ISP1VerifierWithHash.js +36 -0
- package/dist/abi/IVerifyNetworkRouter.d.ts +74 -0
- package/dist/abi/IVerifyNetworkRouter.js +80 -0
- package/dist/abi/IVrfReceiver.d.ts +22 -0
- package/dist/abi/IVrfReceiver.js +26 -0
- package/dist/abi/NitroAttestationVerifier.d.ts +252 -0
- package/dist/abi/NitroAttestationVerifier.js +286 -0
- package/dist/abi/NitroEnclaveVerifier.d.ts +985 -0
- package/dist/abi/NitroEnclaveVerifier.js +1146 -0
- package/dist/abi/Nodes.d.ts +60 -0
- package/dist/abi/Nodes.js +74 -0
- package/dist/abi/NodesFacet.d.ts +449 -0
- package/dist/abi/NodesFacet.js +513 -0
- package/dist/abi/Ownable.d.ts +117 -0
- package/dist/abi/Ownable.js +132 -0
- package/dist/abi/Requests.d.ts +16 -0
- package/dist/abi/Requests.js +16 -0
- package/dist/abi/Router.d.ts +343 -0
- package/dist/abi/Router.js +405 -0
- package/dist/abi/RouterInit.d.ts +40 -0
- package/dist/abi/RouterInit.js +45 -0
- package/dist/abi/SP1Verifier.d.ts +140 -0
- package/dist/abi/SP1Verifier.js +159 -0
- package/dist/abi/TrustedNodeEnclaveKeyVerifier.d.ts +130 -0
- package/dist/abi/TrustedNodeEnclaveKeyVerifier.js +146 -0
- package/dist/abi/VRF.d.ts +74 -0
- package/dist/abi/VRF.js +82 -0
- package/dist/abi/Verifier.d.ts +54 -0
- package/dist/abi/Verifier.js +60 -0
- package/dist/abi/VrfFacet.d.ts +906 -0
- package/dist/abi/VrfFacet.js +1090 -0
- package/dist/artifacts.d.ts +2385 -0
- package/dist/artifacts.js +78 -0
- package/dist/diamond.d.ts +51 -0
- package/dist/diamond.js +60 -0
- package/package.json +50 -4
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
//#region abi/SP1Verifier.ts
|
|
2
|
+
var SP1Verifier_default = [
|
|
3
|
+
{
|
|
4
|
+
"inputs": [],
|
|
5
|
+
"name": "InvalidExitCode",
|
|
6
|
+
"type": "error"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"inputs": [],
|
|
10
|
+
"name": "InvalidProof",
|
|
11
|
+
"type": "error"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"inputs": [],
|
|
15
|
+
"name": "InvalidVkRoot",
|
|
16
|
+
"type": "error"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"inputs": [],
|
|
20
|
+
"name": "ProofInvalid",
|
|
21
|
+
"type": "error"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"inputs": [],
|
|
25
|
+
"name": "PublicInputNotInField",
|
|
26
|
+
"type": "error"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"inputs": [{
|
|
30
|
+
"internalType": "bytes4",
|
|
31
|
+
"name": "received",
|
|
32
|
+
"type": "bytes4"
|
|
33
|
+
}, {
|
|
34
|
+
"internalType": "bytes4",
|
|
35
|
+
"name": "expected",
|
|
36
|
+
"type": "bytes4"
|
|
37
|
+
}],
|
|
38
|
+
"name": "WrongVerifierSelector",
|
|
39
|
+
"type": "error"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"inputs": [],
|
|
43
|
+
"name": "VERIFIER_HASH",
|
|
44
|
+
"outputs": [{
|
|
45
|
+
"internalType": "bytes32",
|
|
46
|
+
"name": "",
|
|
47
|
+
"type": "bytes32"
|
|
48
|
+
}],
|
|
49
|
+
"stateMutability": "pure",
|
|
50
|
+
"type": "function"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"inputs": [],
|
|
54
|
+
"name": "VERSION",
|
|
55
|
+
"outputs": [{
|
|
56
|
+
"internalType": "string",
|
|
57
|
+
"name": "",
|
|
58
|
+
"type": "string"
|
|
59
|
+
}],
|
|
60
|
+
"stateMutability": "pure",
|
|
61
|
+
"type": "function"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"inputs": [],
|
|
65
|
+
"name": "VK_ROOT",
|
|
66
|
+
"outputs": [{
|
|
67
|
+
"internalType": "bytes32",
|
|
68
|
+
"name": "",
|
|
69
|
+
"type": "bytes32"
|
|
70
|
+
}],
|
|
71
|
+
"stateMutability": "pure",
|
|
72
|
+
"type": "function"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"inputs": [{
|
|
76
|
+
"internalType": "uint256[8]",
|
|
77
|
+
"name": "proof",
|
|
78
|
+
"type": "uint256[8]"
|
|
79
|
+
}],
|
|
80
|
+
"name": "compressProof",
|
|
81
|
+
"outputs": [{
|
|
82
|
+
"internalType": "uint256[4]",
|
|
83
|
+
"name": "compressed",
|
|
84
|
+
"type": "uint256[4]"
|
|
85
|
+
}],
|
|
86
|
+
"stateMutability": "view",
|
|
87
|
+
"type": "function"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"inputs": [{
|
|
91
|
+
"internalType": "bytes",
|
|
92
|
+
"name": "publicValues",
|
|
93
|
+
"type": "bytes"
|
|
94
|
+
}],
|
|
95
|
+
"name": "hashPublicValues",
|
|
96
|
+
"outputs": [{
|
|
97
|
+
"internalType": "bytes32",
|
|
98
|
+
"name": "",
|
|
99
|
+
"type": "bytes32"
|
|
100
|
+
}],
|
|
101
|
+
"stateMutability": "pure",
|
|
102
|
+
"type": "function"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"inputs": [{
|
|
106
|
+
"internalType": "uint256[4]",
|
|
107
|
+
"name": "compressedProof",
|
|
108
|
+
"type": "uint256[4]"
|
|
109
|
+
}, {
|
|
110
|
+
"internalType": "uint256[5]",
|
|
111
|
+
"name": "input",
|
|
112
|
+
"type": "uint256[5]"
|
|
113
|
+
}],
|
|
114
|
+
"name": "verifyCompressedProof",
|
|
115
|
+
"outputs": [],
|
|
116
|
+
"stateMutability": "view",
|
|
117
|
+
"type": "function"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"inputs": [{
|
|
121
|
+
"internalType": "uint256[8]",
|
|
122
|
+
"name": "proof",
|
|
123
|
+
"type": "uint256[8]"
|
|
124
|
+
}, {
|
|
125
|
+
"internalType": "uint256[5]",
|
|
126
|
+
"name": "input",
|
|
127
|
+
"type": "uint256[5]"
|
|
128
|
+
}],
|
|
129
|
+
"name": "verifyProof",
|
|
130
|
+
"outputs": [],
|
|
131
|
+
"stateMutability": "view",
|
|
132
|
+
"type": "function"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"inputs": [
|
|
136
|
+
{
|
|
137
|
+
"internalType": "bytes32",
|
|
138
|
+
"name": "programVKey",
|
|
139
|
+
"type": "bytes32"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"internalType": "bytes",
|
|
143
|
+
"name": "publicValues",
|
|
144
|
+
"type": "bytes"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"internalType": "bytes",
|
|
148
|
+
"name": "proofBytes",
|
|
149
|
+
"type": "bytes"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"name": "verifyProof",
|
|
153
|
+
"outputs": [],
|
|
154
|
+
"stateMutability": "view",
|
|
155
|
+
"type": "function"
|
|
156
|
+
}
|
|
157
|
+
];
|
|
158
|
+
//#endregion
|
|
159
|
+
export { SP1Verifier_default as default };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
//#region abi/TrustedNodeEnclaveKeyVerifier.d.ts
|
|
2
|
+
declare const _default: readonly [{
|
|
3
|
+
readonly inputs: readonly [];
|
|
4
|
+
readonly stateMutability: "nonpayable";
|
|
5
|
+
readonly type: "constructor";
|
|
6
|
+
}, {
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly internalType: "address";
|
|
9
|
+
readonly name: "owner";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}];
|
|
12
|
+
readonly name: "OwnableInvalidOwner";
|
|
13
|
+
readonly type: "error";
|
|
14
|
+
}, {
|
|
15
|
+
readonly inputs: readonly [{
|
|
16
|
+
readonly internalType: "address";
|
|
17
|
+
readonly name: "account";
|
|
18
|
+
readonly type: "address";
|
|
19
|
+
}];
|
|
20
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
21
|
+
readonly type: "error";
|
|
22
|
+
}, {
|
|
23
|
+
readonly anonymous: false;
|
|
24
|
+
readonly inputs: readonly [{
|
|
25
|
+
readonly indexed: true;
|
|
26
|
+
readonly internalType: "address";
|
|
27
|
+
readonly name: "previousOwner";
|
|
28
|
+
readonly type: "address";
|
|
29
|
+
}, {
|
|
30
|
+
readonly indexed: true;
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly name: "newOwner";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}];
|
|
35
|
+
readonly name: "OwnershipTransferred";
|
|
36
|
+
readonly type: "event";
|
|
37
|
+
}, {
|
|
38
|
+
readonly anonymous: false;
|
|
39
|
+
readonly inputs: readonly [{
|
|
40
|
+
readonly indexed: true;
|
|
41
|
+
readonly internalType: "address";
|
|
42
|
+
readonly name: "node";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
}, {
|
|
45
|
+
readonly indexed: true;
|
|
46
|
+
readonly internalType: "address";
|
|
47
|
+
readonly name: "operator";
|
|
48
|
+
readonly type: "address";
|
|
49
|
+
}];
|
|
50
|
+
readonly name: "TrustedNodeUpdated";
|
|
51
|
+
readonly type: "event";
|
|
52
|
+
}, {
|
|
53
|
+
readonly inputs: readonly [];
|
|
54
|
+
readonly name: "owner";
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly internalType: "address";
|
|
57
|
+
readonly name: "";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "view";
|
|
61
|
+
readonly type: "function";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "renounceOwnership";
|
|
65
|
+
readonly outputs: readonly [];
|
|
66
|
+
readonly stateMutability: "nonpayable";
|
|
67
|
+
readonly type: "function";
|
|
68
|
+
}, {
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly internalType: "address";
|
|
71
|
+
readonly name: "node";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
}, {
|
|
74
|
+
readonly internalType: "address";
|
|
75
|
+
readonly name: "operator";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
}];
|
|
78
|
+
readonly name: "setTrustedNode";
|
|
79
|
+
readonly outputs: readonly [];
|
|
80
|
+
readonly stateMutability: "nonpayable";
|
|
81
|
+
readonly type: "function";
|
|
82
|
+
}, {
|
|
83
|
+
readonly inputs: readonly [{
|
|
84
|
+
readonly internalType: "address";
|
|
85
|
+
readonly name: "newOwner";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
}];
|
|
88
|
+
readonly name: "transferOwnership";
|
|
89
|
+
readonly outputs: readonly [];
|
|
90
|
+
readonly stateMutability: "nonpayable";
|
|
91
|
+
readonly type: "function";
|
|
92
|
+
}, {
|
|
93
|
+
readonly inputs: readonly [{
|
|
94
|
+
readonly internalType: "address";
|
|
95
|
+
readonly name: "node";
|
|
96
|
+
readonly type: "address";
|
|
97
|
+
}];
|
|
98
|
+
readonly name: "trustedNodes";
|
|
99
|
+
readonly outputs: readonly [{
|
|
100
|
+
readonly internalType: "address";
|
|
101
|
+
readonly name: "operator";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}];
|
|
104
|
+
readonly stateMutability: "view";
|
|
105
|
+
readonly type: "function";
|
|
106
|
+
}, {
|
|
107
|
+
readonly inputs: readonly [{
|
|
108
|
+
readonly internalType: "address";
|
|
109
|
+
readonly name: "operator";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
}, {
|
|
112
|
+
readonly internalType: "uint256[2]";
|
|
113
|
+
readonly name: "publicKey";
|
|
114
|
+
readonly type: "uint256[2]";
|
|
115
|
+
}, {
|
|
116
|
+
readonly internalType: "bytes";
|
|
117
|
+
readonly name: "";
|
|
118
|
+
readonly type: "bytes";
|
|
119
|
+
}];
|
|
120
|
+
readonly name: "verify";
|
|
121
|
+
readonly outputs: readonly [{
|
|
122
|
+
readonly internalType: "bool";
|
|
123
|
+
readonly name: "";
|
|
124
|
+
readonly type: "bool";
|
|
125
|
+
}];
|
|
126
|
+
readonly stateMutability: "view";
|
|
127
|
+
readonly type: "function";
|
|
128
|
+
}];
|
|
129
|
+
//#endregion
|
|
130
|
+
export { _default as default };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
//#region abi/TrustedNodeEnclaveKeyVerifier.ts
|
|
2
|
+
var TrustedNodeEnclaveKeyVerifier_default = [
|
|
3
|
+
{
|
|
4
|
+
"inputs": [],
|
|
5
|
+
"stateMutability": "nonpayable",
|
|
6
|
+
"type": "constructor"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"inputs": [{
|
|
10
|
+
"internalType": "address",
|
|
11
|
+
"name": "owner",
|
|
12
|
+
"type": "address"
|
|
13
|
+
}],
|
|
14
|
+
"name": "OwnableInvalidOwner",
|
|
15
|
+
"type": "error"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputs": [{
|
|
19
|
+
"internalType": "address",
|
|
20
|
+
"name": "account",
|
|
21
|
+
"type": "address"
|
|
22
|
+
}],
|
|
23
|
+
"name": "OwnableUnauthorizedAccount",
|
|
24
|
+
"type": "error"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"anonymous": false,
|
|
28
|
+
"inputs": [{
|
|
29
|
+
"indexed": true,
|
|
30
|
+
"internalType": "address",
|
|
31
|
+
"name": "previousOwner",
|
|
32
|
+
"type": "address"
|
|
33
|
+
}, {
|
|
34
|
+
"indexed": true,
|
|
35
|
+
"internalType": "address",
|
|
36
|
+
"name": "newOwner",
|
|
37
|
+
"type": "address"
|
|
38
|
+
}],
|
|
39
|
+
"name": "OwnershipTransferred",
|
|
40
|
+
"type": "event"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"anonymous": false,
|
|
44
|
+
"inputs": [{
|
|
45
|
+
"indexed": true,
|
|
46
|
+
"internalType": "address",
|
|
47
|
+
"name": "node",
|
|
48
|
+
"type": "address"
|
|
49
|
+
}, {
|
|
50
|
+
"indexed": true,
|
|
51
|
+
"internalType": "address",
|
|
52
|
+
"name": "operator",
|
|
53
|
+
"type": "address"
|
|
54
|
+
}],
|
|
55
|
+
"name": "TrustedNodeUpdated",
|
|
56
|
+
"type": "event"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"inputs": [],
|
|
60
|
+
"name": "owner",
|
|
61
|
+
"outputs": [{
|
|
62
|
+
"internalType": "address",
|
|
63
|
+
"name": "",
|
|
64
|
+
"type": "address"
|
|
65
|
+
}],
|
|
66
|
+
"stateMutability": "view",
|
|
67
|
+
"type": "function"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"inputs": [],
|
|
71
|
+
"name": "renounceOwnership",
|
|
72
|
+
"outputs": [],
|
|
73
|
+
"stateMutability": "nonpayable",
|
|
74
|
+
"type": "function"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"inputs": [{
|
|
78
|
+
"internalType": "address",
|
|
79
|
+
"name": "node",
|
|
80
|
+
"type": "address"
|
|
81
|
+
}, {
|
|
82
|
+
"internalType": "address",
|
|
83
|
+
"name": "operator",
|
|
84
|
+
"type": "address"
|
|
85
|
+
}],
|
|
86
|
+
"name": "setTrustedNode",
|
|
87
|
+
"outputs": [],
|
|
88
|
+
"stateMutability": "nonpayable",
|
|
89
|
+
"type": "function"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"inputs": [{
|
|
93
|
+
"internalType": "address",
|
|
94
|
+
"name": "newOwner",
|
|
95
|
+
"type": "address"
|
|
96
|
+
}],
|
|
97
|
+
"name": "transferOwnership",
|
|
98
|
+
"outputs": [],
|
|
99
|
+
"stateMutability": "nonpayable",
|
|
100
|
+
"type": "function"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"inputs": [{
|
|
104
|
+
"internalType": "address",
|
|
105
|
+
"name": "node",
|
|
106
|
+
"type": "address"
|
|
107
|
+
}],
|
|
108
|
+
"name": "trustedNodes",
|
|
109
|
+
"outputs": [{
|
|
110
|
+
"internalType": "address",
|
|
111
|
+
"name": "operator",
|
|
112
|
+
"type": "address"
|
|
113
|
+
}],
|
|
114
|
+
"stateMutability": "view",
|
|
115
|
+
"type": "function"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"inputs": [
|
|
119
|
+
{
|
|
120
|
+
"internalType": "address",
|
|
121
|
+
"name": "operator",
|
|
122
|
+
"type": "address"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"internalType": "uint256[2]",
|
|
126
|
+
"name": "publicKey",
|
|
127
|
+
"type": "uint256[2]"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"internalType": "bytes",
|
|
131
|
+
"name": "",
|
|
132
|
+
"type": "bytes"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"name": "verify",
|
|
136
|
+
"outputs": [{
|
|
137
|
+
"internalType": "bool",
|
|
138
|
+
"name": "",
|
|
139
|
+
"type": "bool"
|
|
140
|
+
}],
|
|
141
|
+
"stateMutability": "view",
|
|
142
|
+
"type": "function"
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
//#endregion
|
|
146
|
+
export { TrustedNodeEnclaveKeyVerifier_default as default };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
//#region abi/VRF.d.ts
|
|
2
|
+
declare const _default: readonly [{
|
|
3
|
+
readonly inputs: readonly [];
|
|
4
|
+
readonly name: "AA";
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly internalType: "uint256";
|
|
7
|
+
readonly name: "";
|
|
8
|
+
readonly type: "uint256";
|
|
9
|
+
}];
|
|
10
|
+
readonly stateMutability: "view";
|
|
11
|
+
readonly type: "function";
|
|
12
|
+
}, {
|
|
13
|
+
readonly inputs: readonly [];
|
|
14
|
+
readonly name: "BB";
|
|
15
|
+
readonly outputs: readonly [{
|
|
16
|
+
readonly internalType: "uint256";
|
|
17
|
+
readonly name: "";
|
|
18
|
+
readonly type: "uint256";
|
|
19
|
+
}];
|
|
20
|
+
readonly stateMutability: "view";
|
|
21
|
+
readonly type: "function";
|
|
22
|
+
}, {
|
|
23
|
+
readonly inputs: readonly [];
|
|
24
|
+
readonly name: "GX";
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly internalType: "uint256";
|
|
27
|
+
readonly name: "";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
}];
|
|
30
|
+
readonly stateMutability: "view";
|
|
31
|
+
readonly type: "function";
|
|
32
|
+
}, {
|
|
33
|
+
readonly inputs: readonly [];
|
|
34
|
+
readonly name: "GY";
|
|
35
|
+
readonly outputs: readonly [{
|
|
36
|
+
readonly internalType: "uint256";
|
|
37
|
+
readonly name: "";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
}];
|
|
40
|
+
readonly stateMutability: "view";
|
|
41
|
+
readonly type: "function";
|
|
42
|
+
}, {
|
|
43
|
+
readonly inputs: readonly [];
|
|
44
|
+
readonly name: "HASH_TO_CURVE_MAX_ITERATIONS";
|
|
45
|
+
readonly outputs: readonly [{
|
|
46
|
+
readonly internalType: "uint256";
|
|
47
|
+
readonly name: "";
|
|
48
|
+
readonly type: "uint256";
|
|
49
|
+
}];
|
|
50
|
+
readonly stateMutability: "view";
|
|
51
|
+
readonly type: "function";
|
|
52
|
+
}, {
|
|
53
|
+
readonly inputs: readonly [];
|
|
54
|
+
readonly name: "NN";
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly internalType: "uint256";
|
|
57
|
+
readonly name: "";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "view";
|
|
61
|
+
readonly type: "function";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "PP";
|
|
65
|
+
readonly outputs: readonly [{
|
|
66
|
+
readonly internalType: "uint256";
|
|
67
|
+
readonly name: "";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
}];
|
|
70
|
+
readonly stateMutability: "view";
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
}];
|
|
73
|
+
//#endregion
|
|
74
|
+
export { _default as default };
|
package/dist/abi/VRF.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
//#region abi/VRF.ts
|
|
2
|
+
var VRF_default = [
|
|
3
|
+
{
|
|
4
|
+
"inputs": [],
|
|
5
|
+
"name": "AA",
|
|
6
|
+
"outputs": [{
|
|
7
|
+
"internalType": "uint256",
|
|
8
|
+
"name": "",
|
|
9
|
+
"type": "uint256"
|
|
10
|
+
}],
|
|
11
|
+
"stateMutability": "view",
|
|
12
|
+
"type": "function"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"inputs": [],
|
|
16
|
+
"name": "BB",
|
|
17
|
+
"outputs": [{
|
|
18
|
+
"internalType": "uint256",
|
|
19
|
+
"name": "",
|
|
20
|
+
"type": "uint256"
|
|
21
|
+
}],
|
|
22
|
+
"stateMutability": "view",
|
|
23
|
+
"type": "function"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"inputs": [],
|
|
27
|
+
"name": "GX",
|
|
28
|
+
"outputs": [{
|
|
29
|
+
"internalType": "uint256",
|
|
30
|
+
"name": "",
|
|
31
|
+
"type": "uint256"
|
|
32
|
+
}],
|
|
33
|
+
"stateMutability": "view",
|
|
34
|
+
"type": "function"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"inputs": [],
|
|
38
|
+
"name": "GY",
|
|
39
|
+
"outputs": [{
|
|
40
|
+
"internalType": "uint256",
|
|
41
|
+
"name": "",
|
|
42
|
+
"type": "uint256"
|
|
43
|
+
}],
|
|
44
|
+
"stateMutability": "view",
|
|
45
|
+
"type": "function"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"inputs": [],
|
|
49
|
+
"name": "HASH_TO_CURVE_MAX_ITERATIONS",
|
|
50
|
+
"outputs": [{
|
|
51
|
+
"internalType": "uint256",
|
|
52
|
+
"name": "",
|
|
53
|
+
"type": "uint256"
|
|
54
|
+
}],
|
|
55
|
+
"stateMutability": "view",
|
|
56
|
+
"type": "function"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"inputs": [],
|
|
60
|
+
"name": "NN",
|
|
61
|
+
"outputs": [{
|
|
62
|
+
"internalType": "uint256",
|
|
63
|
+
"name": "",
|
|
64
|
+
"type": "uint256"
|
|
65
|
+
}],
|
|
66
|
+
"stateMutability": "view",
|
|
67
|
+
"type": "function"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"inputs": [],
|
|
71
|
+
"name": "PP",
|
|
72
|
+
"outputs": [{
|
|
73
|
+
"internalType": "uint256",
|
|
74
|
+
"name": "",
|
|
75
|
+
"type": "uint256"
|
|
76
|
+
}],
|
|
77
|
+
"stateMutability": "view",
|
|
78
|
+
"type": "function"
|
|
79
|
+
}
|
|
80
|
+
];
|
|
81
|
+
//#endregion
|
|
82
|
+
export { VRF_default as default };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//#region abi/Verifier.d.ts
|
|
2
|
+
declare const _default: readonly [{
|
|
3
|
+
readonly inputs: readonly [];
|
|
4
|
+
readonly name: "ProofInvalid";
|
|
5
|
+
readonly type: "error";
|
|
6
|
+
}, {
|
|
7
|
+
readonly inputs: readonly [];
|
|
8
|
+
readonly name: "PublicInputNotInField";
|
|
9
|
+
readonly type: "error";
|
|
10
|
+
}, {
|
|
11
|
+
readonly inputs: readonly [{
|
|
12
|
+
readonly internalType: "uint256[8]";
|
|
13
|
+
readonly name: "proof";
|
|
14
|
+
readonly type: "uint256[8]";
|
|
15
|
+
}];
|
|
16
|
+
readonly name: "compressProof";
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly internalType: "uint256[4]";
|
|
19
|
+
readonly name: "compressed";
|
|
20
|
+
readonly type: "uint256[4]";
|
|
21
|
+
}];
|
|
22
|
+
readonly stateMutability: "view";
|
|
23
|
+
readonly type: "function";
|
|
24
|
+
}, {
|
|
25
|
+
readonly inputs: readonly [{
|
|
26
|
+
readonly internalType: "uint256[4]";
|
|
27
|
+
readonly name: "compressedProof";
|
|
28
|
+
readonly type: "uint256[4]";
|
|
29
|
+
}, {
|
|
30
|
+
readonly internalType: "uint256[5]";
|
|
31
|
+
readonly name: "input";
|
|
32
|
+
readonly type: "uint256[5]";
|
|
33
|
+
}];
|
|
34
|
+
readonly name: "verifyCompressedProof";
|
|
35
|
+
readonly outputs: readonly [];
|
|
36
|
+
readonly stateMutability: "view";
|
|
37
|
+
readonly type: "function";
|
|
38
|
+
}, {
|
|
39
|
+
readonly inputs: readonly [{
|
|
40
|
+
readonly internalType: "uint256[8]";
|
|
41
|
+
readonly name: "proof";
|
|
42
|
+
readonly type: "uint256[8]";
|
|
43
|
+
}, {
|
|
44
|
+
readonly internalType: "uint256[5]";
|
|
45
|
+
readonly name: "input";
|
|
46
|
+
readonly type: "uint256[5]";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "verifyProof";
|
|
49
|
+
readonly outputs: readonly [];
|
|
50
|
+
readonly stateMutability: "view";
|
|
51
|
+
readonly type: "function";
|
|
52
|
+
}];
|
|
53
|
+
//#endregion
|
|
54
|
+
export { _default as default };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
//#region abi/Verifier.ts
|
|
2
|
+
var Verifier_default = [
|
|
3
|
+
{
|
|
4
|
+
"inputs": [],
|
|
5
|
+
"name": "ProofInvalid",
|
|
6
|
+
"type": "error"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"inputs": [],
|
|
10
|
+
"name": "PublicInputNotInField",
|
|
11
|
+
"type": "error"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"inputs": [{
|
|
15
|
+
"internalType": "uint256[8]",
|
|
16
|
+
"name": "proof",
|
|
17
|
+
"type": "uint256[8]"
|
|
18
|
+
}],
|
|
19
|
+
"name": "compressProof",
|
|
20
|
+
"outputs": [{
|
|
21
|
+
"internalType": "uint256[4]",
|
|
22
|
+
"name": "compressed",
|
|
23
|
+
"type": "uint256[4]"
|
|
24
|
+
}],
|
|
25
|
+
"stateMutability": "view",
|
|
26
|
+
"type": "function"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"inputs": [{
|
|
30
|
+
"internalType": "uint256[4]",
|
|
31
|
+
"name": "compressedProof",
|
|
32
|
+
"type": "uint256[4]"
|
|
33
|
+
}, {
|
|
34
|
+
"internalType": "uint256[5]",
|
|
35
|
+
"name": "input",
|
|
36
|
+
"type": "uint256[5]"
|
|
37
|
+
}],
|
|
38
|
+
"name": "verifyCompressedProof",
|
|
39
|
+
"outputs": [],
|
|
40
|
+
"stateMutability": "view",
|
|
41
|
+
"type": "function"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"inputs": [{
|
|
45
|
+
"internalType": "uint256[8]",
|
|
46
|
+
"name": "proof",
|
|
47
|
+
"type": "uint256[8]"
|
|
48
|
+
}, {
|
|
49
|
+
"internalType": "uint256[5]",
|
|
50
|
+
"name": "input",
|
|
51
|
+
"type": "uint256[5]"
|
|
52
|
+
}],
|
|
53
|
+
"name": "verifyProof",
|
|
54
|
+
"outputs": [],
|
|
55
|
+
"stateMutability": "view",
|
|
56
|
+
"type": "function"
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
//#endregion
|
|
60
|
+
export { Verifier_default as default };
|