@provex/abis 1.9.1 → 1.9.2-rc.20260701200216.78137f4
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/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/messaging/MessageBus.d.ts +289 -0
- package/dist/messaging/MessageBus.d.ts.map +1 -0
- package/dist/messaging/MessageBus.js +363 -0
- package/dist/messaging/index.d.ts +8 -0
- package/dist/messaging/index.d.ts.map +1 -0
- package/dist/messaging/index.js +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
*/
|
|
38
38
|
import * as v2 from "./v2/index.js";
|
|
39
39
|
import * as v3 from "./v3/index.js";
|
|
40
|
-
|
|
40
|
+
import * as messaging from "./messaging/index.js";
|
|
41
|
+
export { v2, v3, messaging };
|
|
41
42
|
export { EscrowAbi as V2EscrowAbi } from "./v2/Escrow.js";
|
|
42
43
|
export { VerifiersAbi as V2VerifiersAbi } from "./v2/Verifiers.js";
|
|
43
44
|
export { EscrowAbi as V3EscrowAbi } from "./v3/Escrow.js";
|
|
@@ -45,4 +46,5 @@ export { OrchestratorAbi } from "./v3/Orchestrator.js";
|
|
|
45
46
|
export { UnifiedPaymentVerifierAbi } from "./v3/UnifiedPaymentVerifier.js";
|
|
46
47
|
export { PaymentVerifierRegistryAbi } from "./v3/PaymentVerifierRegistry.js";
|
|
47
48
|
export { NullifierRegistryAbi } from "./v3/NullifierRegistry.js";
|
|
49
|
+
export { MessageBusAbi } from "./messaging/MessageBus.js";
|
|
48
50
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;AAG7B,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
*/
|
|
38
38
|
import * as v2 from "./v2/index.js";
|
|
39
39
|
import * as v3 from "./v3/index.js";
|
|
40
|
-
|
|
40
|
+
import * as messaging from "./messaging/index.js";
|
|
41
|
+
export { v2, v3, messaging };
|
|
41
42
|
// Convenience exports with version-prefixed names to avoid conflicts
|
|
42
43
|
export { EscrowAbi as V2EscrowAbi } from "./v2/Escrow.js";
|
|
43
44
|
export { VerifiersAbi as V2VerifiersAbi } from "./v2/Verifiers.js";
|
|
@@ -46,3 +47,4 @@ export { OrchestratorAbi } from "./v3/Orchestrator.js";
|
|
|
46
47
|
export { UnifiedPaymentVerifierAbi } from "./v3/UnifiedPaymentVerifier.js";
|
|
47
48
|
export { PaymentVerifierRegistryAbi } from "./v3/PaymentVerifierRegistry.js";
|
|
48
49
|
export { NullifierRegistryAbi } from "./v3/NullifierRegistry.js";
|
|
50
|
+
export { MessageBusAbi } from "./messaging/MessageBus.js";
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MessageBus ABI
|
|
3
|
+
*
|
|
4
|
+
* The MessageBus is a pure-event contract for encrypted peer-to-peer messaging.
|
|
5
|
+
* It supports dappId-scoped filtering and topicId threads.
|
|
6
|
+
*
|
|
7
|
+
* Key functions:
|
|
8
|
+
* - registerKey: Publish an ECDH public key for a dappId
|
|
9
|
+
* - registerKeyFor: Register a key on behalf of a user (relayer pattern)
|
|
10
|
+
* - send: Send an encrypted message to a recipient
|
|
11
|
+
* - sendFor: Send a message on behalf of a user (relayer pattern)
|
|
12
|
+
*
|
|
13
|
+
* Key events:
|
|
14
|
+
* - KeyExchange: Emitted when a user registers an ECDH public key
|
|
15
|
+
* - Message: Emitted when a message is sent (contains ciphertext)
|
|
16
|
+
*/
|
|
17
|
+
export declare const MessageBusAbi: readonly [{
|
|
18
|
+
readonly type: "constructor";
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly stateMutability: "nonpayable";
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
readonly name: "REGISTER_KEY_TYPEHASH";
|
|
24
|
+
readonly inputs: readonly [];
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly name: "";
|
|
27
|
+
readonly type: "bytes32";
|
|
28
|
+
readonly internalType: "bytes32";
|
|
29
|
+
}];
|
|
30
|
+
readonly stateMutability: "view";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly name: "SEND_TYPEHASH";
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly outputs: readonly [{
|
|
36
|
+
readonly name: "";
|
|
37
|
+
readonly type: "bytes32";
|
|
38
|
+
readonly internalType: "bytes32";
|
|
39
|
+
}];
|
|
40
|
+
readonly stateMutability: "view";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
readonly name: "domainSeparator";
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
readonly outputs: readonly [{
|
|
46
|
+
readonly name: "";
|
|
47
|
+
readonly type: "bytes32";
|
|
48
|
+
readonly internalType: "bytes32";
|
|
49
|
+
}];
|
|
50
|
+
readonly stateMutability: "view";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
readonly name: "eip712Domain";
|
|
54
|
+
readonly inputs: readonly [];
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly name: "fields";
|
|
57
|
+
readonly type: "bytes1";
|
|
58
|
+
readonly internalType: "bytes1";
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "name";
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
readonly internalType: "string";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "version";
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly internalType: "string";
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "chainId";
|
|
69
|
+
readonly type: "uint256";
|
|
70
|
+
readonly internalType: "uint256";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "verifyingContract";
|
|
73
|
+
readonly type: "address";
|
|
74
|
+
readonly internalType: "address";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "salt";
|
|
77
|
+
readonly type: "bytes32";
|
|
78
|
+
readonly internalType: "bytes32";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "extensions";
|
|
81
|
+
readonly type: "uint256[]";
|
|
82
|
+
readonly internalType: "uint256[]";
|
|
83
|
+
}];
|
|
84
|
+
readonly stateMutability: "view";
|
|
85
|
+
}, {
|
|
86
|
+
readonly type: "function";
|
|
87
|
+
readonly name: "registerKey";
|
|
88
|
+
readonly inputs: readonly [{
|
|
89
|
+
readonly name: "dappId";
|
|
90
|
+
readonly type: "bytes32";
|
|
91
|
+
readonly internalType: "bytes32";
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "publicKey";
|
|
94
|
+
readonly type: "bytes";
|
|
95
|
+
readonly internalType: "bytes";
|
|
96
|
+
}];
|
|
97
|
+
readonly outputs: readonly [];
|
|
98
|
+
readonly stateMutability: "nonpayable";
|
|
99
|
+
}, {
|
|
100
|
+
readonly type: "function";
|
|
101
|
+
readonly name: "registerKeyFor";
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly name: "dappId";
|
|
104
|
+
readonly type: "bytes32";
|
|
105
|
+
readonly internalType: "bytes32";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "publicKey";
|
|
108
|
+
readonly type: "bytes";
|
|
109
|
+
readonly internalType: "bytes";
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "user";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "signature";
|
|
116
|
+
readonly type: "bytes";
|
|
117
|
+
readonly internalType: "bytes";
|
|
118
|
+
}];
|
|
119
|
+
readonly outputs: readonly [];
|
|
120
|
+
readonly stateMutability: "nonpayable";
|
|
121
|
+
}, {
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
readonly name: "send";
|
|
124
|
+
readonly inputs: readonly [{
|
|
125
|
+
readonly name: "dappId";
|
|
126
|
+
readonly type: "bytes32";
|
|
127
|
+
readonly internalType: "bytes32";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "topicId";
|
|
130
|
+
readonly type: "bytes32";
|
|
131
|
+
readonly internalType: "bytes32";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "to";
|
|
134
|
+
readonly type: "address";
|
|
135
|
+
readonly internalType: "address";
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "nonce";
|
|
138
|
+
readonly type: "bytes32";
|
|
139
|
+
readonly internalType: "bytes32";
|
|
140
|
+
}, {
|
|
141
|
+
readonly name: "ciphertext";
|
|
142
|
+
readonly type: "bytes";
|
|
143
|
+
readonly internalType: "bytes";
|
|
144
|
+
}];
|
|
145
|
+
readonly outputs: readonly [];
|
|
146
|
+
readonly stateMutability: "nonpayable";
|
|
147
|
+
}, {
|
|
148
|
+
readonly type: "function";
|
|
149
|
+
readonly name: "sendFor";
|
|
150
|
+
readonly inputs: readonly [{
|
|
151
|
+
readonly name: "dappId";
|
|
152
|
+
readonly type: "bytes32";
|
|
153
|
+
readonly internalType: "bytes32";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "topicId";
|
|
156
|
+
readonly type: "bytes32";
|
|
157
|
+
readonly internalType: "bytes32";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "to";
|
|
160
|
+
readonly type: "address";
|
|
161
|
+
readonly internalType: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "ciphertext";
|
|
164
|
+
readonly type: "bytes";
|
|
165
|
+
readonly internalType: "bytes";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "nonce";
|
|
168
|
+
readonly type: "bytes32";
|
|
169
|
+
readonly internalType: "bytes32";
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "sender";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
readonly internalType: "address";
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "signature";
|
|
176
|
+
readonly type: "bytes";
|
|
177
|
+
readonly internalType: "bytes";
|
|
178
|
+
}];
|
|
179
|
+
readonly outputs: readonly [];
|
|
180
|
+
readonly stateMutability: "nonpayable";
|
|
181
|
+
}, {
|
|
182
|
+
readonly type: "function";
|
|
183
|
+
readonly name: "usedNonces";
|
|
184
|
+
readonly inputs: readonly [{
|
|
185
|
+
readonly name: "";
|
|
186
|
+
readonly type: "bytes32";
|
|
187
|
+
readonly internalType: "bytes32";
|
|
188
|
+
}];
|
|
189
|
+
readonly outputs: readonly [{
|
|
190
|
+
readonly name: "";
|
|
191
|
+
readonly type: "bool";
|
|
192
|
+
readonly internalType: "bool";
|
|
193
|
+
}];
|
|
194
|
+
readonly stateMutability: "view";
|
|
195
|
+
}, {
|
|
196
|
+
readonly type: "event";
|
|
197
|
+
readonly name: "EIP712DomainChanged";
|
|
198
|
+
readonly inputs: readonly [];
|
|
199
|
+
readonly anonymous: false;
|
|
200
|
+
}, {
|
|
201
|
+
readonly type: "event";
|
|
202
|
+
readonly name: "KeyExchange";
|
|
203
|
+
readonly inputs: readonly [{
|
|
204
|
+
readonly name: "dappId";
|
|
205
|
+
readonly type: "bytes32";
|
|
206
|
+
readonly indexed: true;
|
|
207
|
+
readonly internalType: "bytes32";
|
|
208
|
+
}, {
|
|
209
|
+
readonly name: "user";
|
|
210
|
+
readonly type: "address";
|
|
211
|
+
readonly indexed: true;
|
|
212
|
+
readonly internalType: "address";
|
|
213
|
+
}, {
|
|
214
|
+
readonly name: "publicKey";
|
|
215
|
+
readonly type: "bytes";
|
|
216
|
+
readonly indexed: false;
|
|
217
|
+
readonly internalType: "bytes";
|
|
218
|
+
}];
|
|
219
|
+
readonly anonymous: false;
|
|
220
|
+
}, {
|
|
221
|
+
readonly type: "event";
|
|
222
|
+
readonly name: "Message";
|
|
223
|
+
readonly inputs: readonly [{
|
|
224
|
+
readonly name: "dappId";
|
|
225
|
+
readonly type: "bytes32";
|
|
226
|
+
readonly indexed: true;
|
|
227
|
+
readonly internalType: "bytes32";
|
|
228
|
+
}, {
|
|
229
|
+
readonly name: "topicId";
|
|
230
|
+
readonly type: "bytes32";
|
|
231
|
+
readonly indexed: true;
|
|
232
|
+
readonly internalType: "bytes32";
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "from";
|
|
235
|
+
readonly type: "address";
|
|
236
|
+
readonly indexed: true;
|
|
237
|
+
readonly internalType: "address";
|
|
238
|
+
}, {
|
|
239
|
+
readonly name: "to";
|
|
240
|
+
readonly type: "address";
|
|
241
|
+
readonly indexed: false;
|
|
242
|
+
readonly internalType: "address";
|
|
243
|
+
}, {
|
|
244
|
+
readonly name: "nonce";
|
|
245
|
+
readonly type: "bytes32";
|
|
246
|
+
readonly indexed: false;
|
|
247
|
+
readonly internalType: "bytes32";
|
|
248
|
+
}, {
|
|
249
|
+
readonly name: "ciphertext";
|
|
250
|
+
readonly type: "bytes";
|
|
251
|
+
readonly indexed: false;
|
|
252
|
+
readonly internalType: "bytes";
|
|
253
|
+
}];
|
|
254
|
+
readonly anonymous: false;
|
|
255
|
+
}, {
|
|
256
|
+
readonly type: "error";
|
|
257
|
+
readonly name: "ECDSAInvalidSignature";
|
|
258
|
+
readonly inputs: readonly [];
|
|
259
|
+
}, {
|
|
260
|
+
readonly type: "error";
|
|
261
|
+
readonly name: "ECDSAInvalidSignatureLength";
|
|
262
|
+
readonly inputs: readonly [{
|
|
263
|
+
readonly name: "length";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
readonly internalType: "uint256";
|
|
266
|
+
}];
|
|
267
|
+
}, {
|
|
268
|
+
readonly type: "error";
|
|
269
|
+
readonly name: "ECDSAInvalidSignatureS";
|
|
270
|
+
readonly inputs: readonly [{
|
|
271
|
+
readonly name: "s";
|
|
272
|
+
readonly type: "bytes32";
|
|
273
|
+
readonly internalType: "bytes32";
|
|
274
|
+
}];
|
|
275
|
+
}, {
|
|
276
|
+
readonly type: "error";
|
|
277
|
+
readonly name: "InvalidShortString";
|
|
278
|
+
readonly inputs: readonly [];
|
|
279
|
+
}, {
|
|
280
|
+
readonly type: "error";
|
|
281
|
+
readonly name: "StringTooLong";
|
|
282
|
+
readonly inputs: readonly [{
|
|
283
|
+
readonly name: "str";
|
|
284
|
+
readonly type: "string";
|
|
285
|
+
readonly internalType: "string";
|
|
286
|
+
}];
|
|
287
|
+
}];
|
|
288
|
+
export type MessageBusAbi = typeof MessageBusAbi;
|
|
289
|
+
//# sourceMappingURL=MessageBus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageBus.d.ts","sourceRoot":"","sources":["../../src/messaging/MessageBus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0VF,CAAC;AAEzB,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MessageBus ABI
|
|
3
|
+
*
|
|
4
|
+
* The MessageBus is a pure-event contract for encrypted peer-to-peer messaging.
|
|
5
|
+
* It supports dappId-scoped filtering and topicId threads.
|
|
6
|
+
*
|
|
7
|
+
* Key functions:
|
|
8
|
+
* - registerKey: Publish an ECDH public key for a dappId
|
|
9
|
+
* - registerKeyFor: Register a key on behalf of a user (relayer pattern)
|
|
10
|
+
* - send: Send an encrypted message to a recipient
|
|
11
|
+
* - sendFor: Send a message on behalf of a user (relayer pattern)
|
|
12
|
+
*
|
|
13
|
+
* Key events:
|
|
14
|
+
* - KeyExchange: Emitted when a user registers an ECDH public key
|
|
15
|
+
* - Message: Emitted when a message is sent (contains ciphertext)
|
|
16
|
+
*/
|
|
17
|
+
export const MessageBusAbi = [
|
|
18
|
+
{
|
|
19
|
+
"type": "constructor",
|
|
20
|
+
"inputs": [],
|
|
21
|
+
"stateMutability": "nonpayable"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "function",
|
|
25
|
+
"name": "REGISTER_KEY_TYPEHASH",
|
|
26
|
+
"inputs": [],
|
|
27
|
+
"outputs": [
|
|
28
|
+
{
|
|
29
|
+
"name": "",
|
|
30
|
+
"type": "bytes32",
|
|
31
|
+
"internalType": "bytes32"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"stateMutability": "view"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "function",
|
|
38
|
+
"name": "SEND_TYPEHASH",
|
|
39
|
+
"inputs": [],
|
|
40
|
+
"outputs": [
|
|
41
|
+
{
|
|
42
|
+
"name": "",
|
|
43
|
+
"type": "bytes32",
|
|
44
|
+
"internalType": "bytes32"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"stateMutability": "view"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "function",
|
|
51
|
+
"name": "domainSeparator",
|
|
52
|
+
"inputs": [],
|
|
53
|
+
"outputs": [
|
|
54
|
+
{
|
|
55
|
+
"name": "",
|
|
56
|
+
"type": "bytes32",
|
|
57
|
+
"internalType": "bytes32"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"stateMutability": "view"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "function",
|
|
64
|
+
"name": "eip712Domain",
|
|
65
|
+
"inputs": [],
|
|
66
|
+
"outputs": [
|
|
67
|
+
{
|
|
68
|
+
"name": "fields",
|
|
69
|
+
"type": "bytes1",
|
|
70
|
+
"internalType": "bytes1"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "name",
|
|
74
|
+
"type": "string",
|
|
75
|
+
"internalType": "string"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "version",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"internalType": "string"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "chainId",
|
|
84
|
+
"type": "uint256",
|
|
85
|
+
"internalType": "uint256"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "verifyingContract",
|
|
89
|
+
"type": "address",
|
|
90
|
+
"internalType": "address"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "salt",
|
|
94
|
+
"type": "bytes32",
|
|
95
|
+
"internalType": "bytes32"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "extensions",
|
|
99
|
+
"type": "uint256[]",
|
|
100
|
+
"internalType": "uint256[]"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"stateMutability": "view"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "function",
|
|
107
|
+
"name": "registerKey",
|
|
108
|
+
"inputs": [
|
|
109
|
+
{
|
|
110
|
+
"name": "dappId",
|
|
111
|
+
"type": "bytes32",
|
|
112
|
+
"internalType": "bytes32"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "publicKey",
|
|
116
|
+
"type": "bytes",
|
|
117
|
+
"internalType": "bytes"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"outputs": [],
|
|
121
|
+
"stateMutability": "nonpayable"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "function",
|
|
125
|
+
"name": "registerKeyFor",
|
|
126
|
+
"inputs": [
|
|
127
|
+
{
|
|
128
|
+
"name": "dappId",
|
|
129
|
+
"type": "bytes32",
|
|
130
|
+
"internalType": "bytes32"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "publicKey",
|
|
134
|
+
"type": "bytes",
|
|
135
|
+
"internalType": "bytes"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "user",
|
|
139
|
+
"type": "address",
|
|
140
|
+
"internalType": "address"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "signature",
|
|
144
|
+
"type": "bytes",
|
|
145
|
+
"internalType": "bytes"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"outputs": [],
|
|
149
|
+
"stateMutability": "nonpayable"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "function",
|
|
153
|
+
"name": "send",
|
|
154
|
+
"inputs": [
|
|
155
|
+
{
|
|
156
|
+
"name": "dappId",
|
|
157
|
+
"type": "bytes32",
|
|
158
|
+
"internalType": "bytes32"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "topicId",
|
|
162
|
+
"type": "bytes32",
|
|
163
|
+
"internalType": "bytes32"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "to",
|
|
167
|
+
"type": "address",
|
|
168
|
+
"internalType": "address"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "nonce",
|
|
172
|
+
"type": "bytes32",
|
|
173
|
+
"internalType": "bytes32"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "ciphertext",
|
|
177
|
+
"type": "bytes",
|
|
178
|
+
"internalType": "bytes"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"outputs": [],
|
|
182
|
+
"stateMutability": "nonpayable"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"type": "function",
|
|
186
|
+
"name": "sendFor",
|
|
187
|
+
"inputs": [
|
|
188
|
+
{
|
|
189
|
+
"name": "dappId",
|
|
190
|
+
"type": "bytes32",
|
|
191
|
+
"internalType": "bytes32"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "topicId",
|
|
195
|
+
"type": "bytes32",
|
|
196
|
+
"internalType": "bytes32"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "to",
|
|
200
|
+
"type": "address",
|
|
201
|
+
"internalType": "address"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "ciphertext",
|
|
205
|
+
"type": "bytes",
|
|
206
|
+
"internalType": "bytes"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "nonce",
|
|
210
|
+
"type": "bytes32",
|
|
211
|
+
"internalType": "bytes32"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "sender",
|
|
215
|
+
"type": "address",
|
|
216
|
+
"internalType": "address"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "signature",
|
|
220
|
+
"type": "bytes",
|
|
221
|
+
"internalType": "bytes"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"outputs": [],
|
|
225
|
+
"stateMutability": "nonpayable"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"type": "function",
|
|
229
|
+
"name": "usedNonces",
|
|
230
|
+
"inputs": [
|
|
231
|
+
{
|
|
232
|
+
"name": "",
|
|
233
|
+
"type": "bytes32",
|
|
234
|
+
"internalType": "bytes32"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"outputs": [
|
|
238
|
+
{
|
|
239
|
+
"name": "",
|
|
240
|
+
"type": "bool",
|
|
241
|
+
"internalType": "bool"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"stateMutability": "view"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"type": "event",
|
|
248
|
+
"name": "EIP712DomainChanged",
|
|
249
|
+
"inputs": [],
|
|
250
|
+
"anonymous": false
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"type": "event",
|
|
254
|
+
"name": "KeyExchange",
|
|
255
|
+
"inputs": [
|
|
256
|
+
{
|
|
257
|
+
"name": "dappId",
|
|
258
|
+
"type": "bytes32",
|
|
259
|
+
"indexed": true,
|
|
260
|
+
"internalType": "bytes32"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "user",
|
|
264
|
+
"type": "address",
|
|
265
|
+
"indexed": true,
|
|
266
|
+
"internalType": "address"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "publicKey",
|
|
270
|
+
"type": "bytes",
|
|
271
|
+
"indexed": false,
|
|
272
|
+
"internalType": "bytes"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"anonymous": false
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"type": "event",
|
|
279
|
+
"name": "Message",
|
|
280
|
+
"inputs": [
|
|
281
|
+
{
|
|
282
|
+
"name": "dappId",
|
|
283
|
+
"type": "bytes32",
|
|
284
|
+
"indexed": true,
|
|
285
|
+
"internalType": "bytes32"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "topicId",
|
|
289
|
+
"type": "bytes32",
|
|
290
|
+
"indexed": true,
|
|
291
|
+
"internalType": "bytes32"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "from",
|
|
295
|
+
"type": "address",
|
|
296
|
+
"indexed": true,
|
|
297
|
+
"internalType": "address"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "to",
|
|
301
|
+
"type": "address",
|
|
302
|
+
"indexed": false,
|
|
303
|
+
"internalType": "address"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "nonce",
|
|
307
|
+
"type": "bytes32",
|
|
308
|
+
"indexed": false,
|
|
309
|
+
"internalType": "bytes32"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "ciphertext",
|
|
313
|
+
"type": "bytes",
|
|
314
|
+
"indexed": false,
|
|
315
|
+
"internalType": "bytes"
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
"anonymous": false
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"type": "error",
|
|
322
|
+
"name": "ECDSAInvalidSignature",
|
|
323
|
+
"inputs": []
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"type": "error",
|
|
327
|
+
"name": "ECDSAInvalidSignatureLength",
|
|
328
|
+
"inputs": [
|
|
329
|
+
{
|
|
330
|
+
"name": "length",
|
|
331
|
+
"type": "uint256",
|
|
332
|
+
"internalType": "uint256"
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"type": "error",
|
|
338
|
+
"name": "ECDSAInvalidSignatureS",
|
|
339
|
+
"inputs": [
|
|
340
|
+
{
|
|
341
|
+
"name": "s",
|
|
342
|
+
"type": "bytes32",
|
|
343
|
+
"internalType": "bytes32"
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"type": "error",
|
|
349
|
+
"name": "InvalidShortString",
|
|
350
|
+
"inputs": []
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"type": "error",
|
|
354
|
+
"name": "StringTooLong",
|
|
355
|
+
"inputs": [
|
|
356
|
+
{
|
|
357
|
+
"name": "str",
|
|
358
|
+
"type": "string",
|
|
359
|
+
"internalType": "string"
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Messaging Contract ABIs
|
|
3
|
+
*
|
|
4
|
+
* ABIs for the MessageBus contract — a pure-event on-chain messaging layer
|
|
5
|
+
* with dappId scoping, topicId threads, and ECDH key exchange support.
|
|
6
|
+
*/
|
|
7
|
+
export { MessageBusAbi } from "./MessageBus.js";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messaging/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|