@fangorn-network/sdk 2026.7.27 → 2026.7.28
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/README.md +163 -8
- package/lib/cli/cli.js +16 -11
- package/lib/cli/index.d.ts +13 -13
- package/lib/config.d.ts +86 -79
- package/lib/config.js +11 -2
- package/lib/contracts/data-registry/abi.d.ts +80 -2
- package/lib/contracts/data-registry/abi.js +107 -12
- package/lib/contracts/data-registry/index.d.ts +91 -19
- package/lib/contracts/data-registry/index.js +153 -24
- package/lib/contracts/index.d.ts +2 -2
- package/lib/contracts/index.js +2 -2
- package/lib/engine/index.d.ts +36 -12
- package/lib/engine/index.js +51 -19
- package/lib/engine/test-helpers.d.ts +7 -4
- package/lib/engine/test-helpers.js +9 -6
- package/lib/fangorn.d.ts +76 -12
- package/lib/fangorn.js +102 -32
- package/lib/index.d.ts +7 -2
- package/lib/index.js +7 -2
- package/lib/test/testbed.d.ts +21 -3
- package/lib/test/testbed.js +38 -7
- package/package.json +1 -1
package/lib/config.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as viem0 from "viem";
|
|
1
|
+
import * as viem19 from "viem";
|
|
3
2
|
import { Chain, Hex } from "viem";
|
|
3
|
+
import * as viem_chains0 from "viem/chains";
|
|
4
4
|
import * as abitype0 from "abitype";
|
|
5
5
|
|
|
6
6
|
//#region src/config.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Derive an app id from a human-readable name. Apps claim one of these on-chain
|
|
9
|
+
* with `registerApp`; it prefixes every namespace key the app's publishers write.
|
|
10
|
+
*/
|
|
11
|
+
declare function appId(name: string): Hex;
|
|
7
12
|
/**
|
|
8
13
|
* The networks supproted by Fangorn currently
|
|
9
14
|
*/
|
|
@@ -43,17 +48,17 @@ declare const SupportedNetworks: {
|
|
|
43
48
|
testnet: true;
|
|
44
49
|
custom?: Record<string, unknown> | undefined;
|
|
45
50
|
extendSchema?: Record<string, unknown> | undefined;
|
|
46
|
-
fees?:
|
|
51
|
+
fees?: viem19.ChainFees<undefined> | undefined;
|
|
47
52
|
formatters?: undefined;
|
|
48
|
-
prepareTransactionRequest?: ((args:
|
|
53
|
+
prepareTransactionRequest?: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
49
54
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
50
|
-
}) => Promise<
|
|
55
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | [fn: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
51
56
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
52
|
-
}) => Promise<
|
|
57
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
53
58
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
54
59
|
}] | undefined;
|
|
55
|
-
serializers?:
|
|
56
|
-
verifyHash?: ((client:
|
|
60
|
+
serializers?: viem19.ChainSerializers<undefined, viem19.TransactionSerializable> | undefined;
|
|
61
|
+
verifyHash?: ((client: viem19.Client, parameters: viem19.VerifyHashActionParameters) => Promise<viem19.VerifyHashActionReturnType>) | undefined;
|
|
57
62
|
};
|
|
58
63
|
};
|
|
59
64
|
BaseSepolia: {
|
|
@@ -131,7 +136,7 @@ declare const SupportedNetworks: {
|
|
|
131
136
|
testnet: true;
|
|
132
137
|
custom?: Record<string, unknown> | undefined;
|
|
133
138
|
extendSchema?: Record<string, unknown> | undefined;
|
|
134
|
-
fees?:
|
|
139
|
+
fees?: viem19.ChainFees<undefined> | undefined;
|
|
135
140
|
formatters: {
|
|
136
141
|
readonly block: {
|
|
137
142
|
exclude: [] | undefined;
|
|
@@ -140,28 +145,28 @@ declare const SupportedNetworks: {
|
|
|
140
145
|
blobGasUsed: bigint;
|
|
141
146
|
difficulty: bigint;
|
|
142
147
|
excessBlobGas: bigint;
|
|
143
|
-
extraData:
|
|
148
|
+
extraData: viem19.Hex;
|
|
144
149
|
gasLimit: bigint;
|
|
145
150
|
gasUsed: bigint;
|
|
146
151
|
hash: `0x${string}` | null;
|
|
147
152
|
logsBloom: `0x${string}` | null;
|
|
148
153
|
miner: abitype0.Address;
|
|
149
|
-
mixHash:
|
|
154
|
+
mixHash: viem19.Hash;
|
|
150
155
|
nonce: `0x${string}` | null;
|
|
151
156
|
number: bigint | null;
|
|
152
157
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
153
|
-
parentHash:
|
|
154
|
-
receiptsRoot:
|
|
155
|
-
sealFields:
|
|
156
|
-
sha3Uncles:
|
|
158
|
+
parentHash: viem19.Hash;
|
|
159
|
+
receiptsRoot: viem19.Hex;
|
|
160
|
+
sealFields: viem19.Hex[];
|
|
161
|
+
sha3Uncles: viem19.Hash;
|
|
157
162
|
size: bigint;
|
|
158
|
-
stateRoot:
|
|
163
|
+
stateRoot: viem19.Hash;
|
|
159
164
|
timestamp: bigint;
|
|
160
165
|
totalDifficulty: bigint | null;
|
|
161
166
|
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
162
|
-
transactionsRoot:
|
|
163
|
-
uncles:
|
|
164
|
-
withdrawals?:
|
|
167
|
+
transactionsRoot: viem19.Hash;
|
|
168
|
+
uncles: viem19.Hash[];
|
|
169
|
+
withdrawals?: viem19.Withdrawal[] | undefined | undefined;
|
|
165
170
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
166
171
|
} & {};
|
|
167
172
|
type: "block";
|
|
@@ -173,14 +178,14 @@ declare const SupportedNetworks: {
|
|
|
173
178
|
blockNumber: bigint | null;
|
|
174
179
|
from: abitype0.Address;
|
|
175
180
|
gas: bigint;
|
|
176
|
-
hash:
|
|
177
|
-
input:
|
|
181
|
+
hash: viem19.Hash;
|
|
182
|
+
input: viem19.Hex;
|
|
178
183
|
nonce: number;
|
|
179
|
-
r:
|
|
180
|
-
s:
|
|
184
|
+
r: viem19.Hex;
|
|
185
|
+
s: viem19.Hex;
|
|
181
186
|
to: abitype0.Address | null;
|
|
182
187
|
transactionIndex: number | null;
|
|
183
|
-
typeHex:
|
|
188
|
+
typeHex: viem19.Hex | null;
|
|
184
189
|
v: bigint;
|
|
185
190
|
value: bigint;
|
|
186
191
|
yParity: number;
|
|
@@ -190,11 +195,11 @@ declare const SupportedNetworks: {
|
|
|
190
195
|
maxPriorityFeePerGas: bigint;
|
|
191
196
|
isSystemTx?: boolean;
|
|
192
197
|
mint?: bigint | undefined | undefined;
|
|
193
|
-
sourceHash:
|
|
198
|
+
sourceHash: viem19.Hex;
|
|
194
199
|
type: "deposit";
|
|
195
200
|
} | {
|
|
196
|
-
r:
|
|
197
|
-
s:
|
|
201
|
+
r: viem19.Hex;
|
|
202
|
+
s: viem19.Hex;
|
|
198
203
|
v: bigint;
|
|
199
204
|
to: abitype0.Address | null;
|
|
200
205
|
from: abitype0.Address;
|
|
@@ -203,10 +208,10 @@ declare const SupportedNetworks: {
|
|
|
203
208
|
value: bigint;
|
|
204
209
|
blockHash: `0x${string}` | null;
|
|
205
210
|
blockNumber: bigint | null;
|
|
206
|
-
hash:
|
|
207
|
-
input:
|
|
211
|
+
hash: viem19.Hash;
|
|
212
|
+
input: viem19.Hex;
|
|
208
213
|
transactionIndex: number | null;
|
|
209
|
-
typeHex:
|
|
214
|
+
typeHex: viem19.Hex | null;
|
|
210
215
|
accessList?: undefined | undefined;
|
|
211
216
|
authorizationList?: undefined | undefined;
|
|
212
217
|
blobVersionedHashes?: undefined | undefined;
|
|
@@ -225,18 +230,18 @@ declare const SupportedNetworks: {
|
|
|
225
230
|
blockNumber: bigint | null;
|
|
226
231
|
from: abitype0.Address;
|
|
227
232
|
gas: bigint;
|
|
228
|
-
hash:
|
|
229
|
-
input:
|
|
233
|
+
hash: viem19.Hash;
|
|
234
|
+
input: viem19.Hex;
|
|
230
235
|
nonce: number;
|
|
231
|
-
r:
|
|
232
|
-
s:
|
|
236
|
+
r: viem19.Hex;
|
|
237
|
+
s: viem19.Hex;
|
|
233
238
|
to: abitype0.Address | null;
|
|
234
239
|
transactionIndex: number | null;
|
|
235
|
-
typeHex:
|
|
240
|
+
typeHex: viem19.Hex | null;
|
|
236
241
|
v: bigint;
|
|
237
242
|
value: bigint;
|
|
238
243
|
yParity: number;
|
|
239
|
-
accessList:
|
|
244
|
+
accessList: viem19.AccessList;
|
|
240
245
|
authorizationList?: undefined | undefined;
|
|
241
246
|
blobVersionedHashes?: undefined | undefined;
|
|
242
247
|
chainId: number;
|
|
@@ -253,18 +258,18 @@ declare const SupportedNetworks: {
|
|
|
253
258
|
blockNumber: bigint | null;
|
|
254
259
|
from: abitype0.Address;
|
|
255
260
|
gas: bigint;
|
|
256
|
-
hash:
|
|
257
|
-
input:
|
|
261
|
+
hash: viem19.Hash;
|
|
262
|
+
input: viem19.Hex;
|
|
258
263
|
nonce: number;
|
|
259
|
-
r:
|
|
260
|
-
s:
|
|
264
|
+
r: viem19.Hex;
|
|
265
|
+
s: viem19.Hex;
|
|
261
266
|
to: abitype0.Address | null;
|
|
262
267
|
transactionIndex: number | null;
|
|
263
|
-
typeHex:
|
|
268
|
+
typeHex: viem19.Hex | null;
|
|
264
269
|
v: bigint;
|
|
265
270
|
value: bigint;
|
|
266
271
|
yParity: number;
|
|
267
|
-
accessList:
|
|
272
|
+
accessList: viem19.AccessList;
|
|
268
273
|
authorizationList?: undefined | undefined;
|
|
269
274
|
blobVersionedHashes?: undefined | undefined;
|
|
270
275
|
chainId: number;
|
|
@@ -281,20 +286,20 @@ declare const SupportedNetworks: {
|
|
|
281
286
|
blockNumber: bigint | null;
|
|
282
287
|
from: abitype0.Address;
|
|
283
288
|
gas: bigint;
|
|
284
|
-
hash:
|
|
285
|
-
input:
|
|
289
|
+
hash: viem19.Hash;
|
|
290
|
+
input: viem19.Hex;
|
|
286
291
|
nonce: number;
|
|
287
|
-
r:
|
|
288
|
-
s:
|
|
292
|
+
r: viem19.Hex;
|
|
293
|
+
s: viem19.Hex;
|
|
289
294
|
to: abitype0.Address | null;
|
|
290
295
|
transactionIndex: number | null;
|
|
291
|
-
typeHex:
|
|
296
|
+
typeHex: viem19.Hex | null;
|
|
292
297
|
v: bigint;
|
|
293
298
|
value: bigint;
|
|
294
299
|
yParity: number;
|
|
295
|
-
accessList:
|
|
300
|
+
accessList: viem19.AccessList;
|
|
296
301
|
authorizationList?: undefined | undefined;
|
|
297
|
-
blobVersionedHashes: readonly
|
|
302
|
+
blobVersionedHashes: readonly viem19.Hex[];
|
|
298
303
|
chainId: number;
|
|
299
304
|
type: "eip4844";
|
|
300
305
|
gasPrice?: undefined | undefined;
|
|
@@ -309,19 +314,19 @@ declare const SupportedNetworks: {
|
|
|
309
314
|
blockNumber: bigint | null;
|
|
310
315
|
from: abitype0.Address;
|
|
311
316
|
gas: bigint;
|
|
312
|
-
hash:
|
|
313
|
-
input:
|
|
317
|
+
hash: viem19.Hash;
|
|
318
|
+
input: viem19.Hex;
|
|
314
319
|
nonce: number;
|
|
315
|
-
r:
|
|
316
|
-
s:
|
|
320
|
+
r: viem19.Hex;
|
|
321
|
+
s: viem19.Hex;
|
|
317
322
|
to: abitype0.Address | null;
|
|
318
323
|
transactionIndex: number | null;
|
|
319
|
-
typeHex:
|
|
324
|
+
typeHex: viem19.Hex | null;
|
|
320
325
|
v: bigint;
|
|
321
326
|
value: bigint;
|
|
322
327
|
yParity: number;
|
|
323
|
-
accessList:
|
|
324
|
-
authorizationList:
|
|
328
|
+
accessList: viem19.AccessList;
|
|
329
|
+
authorizationList: viem19.SignedAuthorizationList;
|
|
325
330
|
blobVersionedHashes?: undefined | undefined;
|
|
326
331
|
chainId: number;
|
|
327
332
|
type: "eip7702";
|
|
@@ -340,7 +345,7 @@ declare const SupportedNetworks: {
|
|
|
340
345
|
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
341
346
|
blobGasPrice?: bigint | undefined;
|
|
342
347
|
blobGasUsed?: bigint | undefined;
|
|
343
|
-
blockHash:
|
|
348
|
+
blockHash: viem19.Hash;
|
|
344
349
|
blockNumber: bigint;
|
|
345
350
|
blockTimestamp?: bigint | undefined;
|
|
346
351
|
contractAddress: abitype0.Address | null | undefined;
|
|
@@ -348,14 +353,14 @@ declare const SupportedNetworks: {
|
|
|
348
353
|
effectiveGasPrice: bigint;
|
|
349
354
|
from: abitype0.Address;
|
|
350
355
|
gasUsed: bigint;
|
|
351
|
-
logs:
|
|
352
|
-
logsBloom:
|
|
356
|
+
logs: viem19.Log<bigint, number, false>[];
|
|
357
|
+
logsBloom: viem19.Hex;
|
|
353
358
|
root?: `0x${string}` | undefined;
|
|
354
359
|
status: "success" | "reverted";
|
|
355
360
|
to: abitype0.Address | null;
|
|
356
|
-
transactionHash:
|
|
361
|
+
transactionHash: viem19.Hash;
|
|
357
362
|
transactionIndex: number;
|
|
358
|
-
type:
|
|
363
|
+
type: viem19.TransactionType;
|
|
359
364
|
l1GasPrice: bigint | null;
|
|
360
365
|
l1GasUsed: bigint | null;
|
|
361
366
|
l1Fee: bigint | null;
|
|
@@ -364,17 +369,17 @@ declare const SupportedNetworks: {
|
|
|
364
369
|
type: "transactionReceipt";
|
|
365
370
|
};
|
|
366
371
|
};
|
|
367
|
-
prepareTransactionRequest?: ((args:
|
|
372
|
+
prepareTransactionRequest?: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
368
373
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
369
|
-
}) => Promise<
|
|
374
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | [fn: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
370
375
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
371
|
-
}) => Promise<
|
|
376
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
372
377
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
373
378
|
}] | undefined;
|
|
374
379
|
serializers: {
|
|
375
380
|
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
376
381
|
};
|
|
377
|
-
verifyHash?: ((client:
|
|
382
|
+
verifyHash?: ((client: viem19.Client, parameters: viem19.VerifyHashActionParameters) => Promise<viem19.VerifyHashActionReturnType>) | undefined;
|
|
378
383
|
readonly network: "base-sepolia";
|
|
379
384
|
};
|
|
380
385
|
};
|
|
@@ -417,27 +422,29 @@ declare function getNetwork(name: string): {
|
|
|
417
422
|
testnet: true;
|
|
418
423
|
custom?: Record<string, unknown> | undefined;
|
|
419
424
|
extendSchema?: Record<string, unknown> | undefined;
|
|
420
|
-
fees?:
|
|
425
|
+
fees?: viem19.ChainFees<undefined> | undefined;
|
|
421
426
|
formatters?: undefined;
|
|
422
|
-
prepareTransactionRequest?: ((args:
|
|
427
|
+
prepareTransactionRequest?: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
423
428
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
424
|
-
}) => Promise<
|
|
429
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | [fn: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
425
430
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
426
|
-
}) => Promise<
|
|
431
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
427
432
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
428
433
|
}] | undefined;
|
|
429
|
-
serializers?:
|
|
430
|
-
verifyHash?: ((client:
|
|
434
|
+
serializers?: viem19.ChainSerializers<undefined, viem19.TransactionSerializable> | undefined;
|
|
435
|
+
verifyHash?: ((client: viem19.Client, parameters: viem19.VerifyHashActionParameters) => Promise<viem19.VerifyHashActionReturnType>) | undefined;
|
|
431
436
|
};
|
|
432
437
|
interface AppConfig {
|
|
433
438
|
dataRegistryContractAddress: Hex;
|
|
439
|
+
appId: Hex;
|
|
434
440
|
chain: Chain;
|
|
435
441
|
rpcUrl: string;
|
|
436
442
|
caip2: number;
|
|
437
443
|
ipfsGateway: string;
|
|
438
444
|
}
|
|
439
445
|
declare const FangornConfig: {
|
|
440
|
-
dataRegistryContractAddress: "
|
|
446
|
+
dataRegistryContractAddress: "0xdec430f03cdc022ab2338490e9b30ef5c63f7340";
|
|
447
|
+
appId: `0x${string}`;
|
|
441
448
|
chain: {
|
|
442
449
|
blockExplorers: {
|
|
443
450
|
readonly default: {
|
|
@@ -471,21 +478,21 @@ declare const FangornConfig: {
|
|
|
471
478
|
testnet: true;
|
|
472
479
|
custom?: Record<string, unknown> | undefined;
|
|
473
480
|
extendSchema?: Record<string, unknown> | undefined;
|
|
474
|
-
fees?:
|
|
481
|
+
fees?: viem19.ChainFees<undefined> | undefined;
|
|
475
482
|
formatters?: undefined;
|
|
476
|
-
prepareTransactionRequest?: ((args:
|
|
483
|
+
prepareTransactionRequest?: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
477
484
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
478
|
-
}) => Promise<
|
|
485
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | [fn: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
479
486
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
480
|
-
}) => Promise<
|
|
487
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
481
488
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
482
489
|
}] | undefined;
|
|
483
|
-
serializers?:
|
|
484
|
-
verifyHash?: ((client:
|
|
490
|
+
serializers?: viem19.ChainSerializers<undefined, viem19.TransactionSerializable> | undefined;
|
|
491
|
+
verifyHash?: ((client: viem19.Client, parameters: viem19.VerifyHashActionParameters) => Promise<viem19.VerifyHashActionReturnType>) | undefined;
|
|
485
492
|
};
|
|
486
493
|
rpcUrl: string;
|
|
487
494
|
caip2: number;
|
|
488
495
|
ipfsGateway: string;
|
|
489
496
|
};
|
|
490
497
|
//#endregion
|
|
491
|
-
export { AppConfig, FangornConfig, SupportedNetworks, getNetwork as default };
|
|
498
|
+
export { AppConfig, FangornConfig, SupportedNetworks, appId, getNetwork as default };
|
package/lib/config.js
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import { keccak256, toHex } from "viem";
|
|
1
2
|
import { arbitrumSepolia, baseSepolia } from "viem/chains";
|
|
2
3
|
|
|
3
4
|
//#region src/config.ts
|
|
4
5
|
/**
|
|
6
|
+
* Derive an app id from a human-readable name. Apps claim one of these on-chain
|
|
7
|
+
* with `registerApp`; it prefixes every namespace key the app's publishers write.
|
|
8
|
+
*/
|
|
9
|
+
function appId(name) {
|
|
10
|
+
return keccak256(toHex(name));
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
5
13
|
* The networks supproted by Fangorn currently
|
|
6
14
|
*/
|
|
7
15
|
const SupportedNetworks = {
|
|
@@ -24,7 +32,8 @@ function getNetwork(name) {
|
|
|
24
32
|
throw new Error(`Chain ${name} is not supported`);
|
|
25
33
|
}
|
|
26
34
|
const FangornConfig = {
|
|
27
|
-
dataRegistryContractAddress: "
|
|
35
|
+
dataRegistryContractAddress: "0xdec430f03cdc022ab2338490e9b30ef5c63f7340",
|
|
36
|
+
appId: appId("fangorn"),
|
|
28
37
|
chain: arbitrumSepolia,
|
|
29
38
|
rpcUrl: "https://sepolia-rollup.arbitrum.io/rpc",
|
|
30
39
|
caip2: 421614,
|
|
@@ -32,4 +41,4 @@ const FangornConfig = {
|
|
|
32
41
|
};
|
|
33
42
|
|
|
34
43
|
//#endregion
|
|
35
|
-
export { FangornConfig, SupportedNetworks, getNetwork as default };
|
|
44
|
+
export { FangornConfig, SupportedNetworks, appId, getNetwork as default };
|
|
@@ -3,6 +3,14 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
3
3
|
readonly inputs: readonly [];
|
|
4
4
|
readonly name: "AlreadyRegistered";
|
|
5
5
|
readonly type: "error";
|
|
6
|
+
}, {
|
|
7
|
+
readonly inputs: readonly [];
|
|
8
|
+
readonly name: "AppAlreadyRegistered";
|
|
9
|
+
readonly type: "error";
|
|
10
|
+
}, {
|
|
11
|
+
readonly inputs: readonly [];
|
|
12
|
+
readonly name: "AppNotFound";
|
|
13
|
+
readonly type: "error";
|
|
6
14
|
}, {
|
|
7
15
|
readonly inputs: readonly [];
|
|
8
16
|
readonly name: "NotRegistered";
|
|
@@ -23,6 +31,21 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
23
31
|
readonly inputs: readonly [];
|
|
24
32
|
readonly name: "Unauthorized";
|
|
25
33
|
readonly type: "error";
|
|
34
|
+
}, {
|
|
35
|
+
readonly anonymous: false;
|
|
36
|
+
readonly inputs: readonly [{
|
|
37
|
+
readonly indexed: true;
|
|
38
|
+
readonly internalType: "bytes32";
|
|
39
|
+
readonly name: "app_id";
|
|
40
|
+
readonly type: "bytes32";
|
|
41
|
+
}, {
|
|
42
|
+
readonly indexed: true;
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
readonly name: "owner";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}];
|
|
47
|
+
readonly name: "AppRegistered";
|
|
48
|
+
readonly type: "event";
|
|
26
49
|
}, {
|
|
27
50
|
readonly anonymous: false;
|
|
28
51
|
readonly inputs: readonly [{
|
|
@@ -76,17 +99,32 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
76
99
|
}, {
|
|
77
100
|
readonly anonymous: false;
|
|
78
101
|
readonly inputs: readonly [{
|
|
102
|
+
readonly indexed: true;
|
|
103
|
+
readonly internalType: "bytes32";
|
|
104
|
+
readonly name: "namespace_key";
|
|
105
|
+
readonly type: "bytes32";
|
|
106
|
+
}, {
|
|
107
|
+
readonly indexed: true;
|
|
108
|
+
readonly internalType: "bytes32";
|
|
109
|
+
readonly name: "app_id";
|
|
110
|
+
readonly type: "bytes32";
|
|
111
|
+
}, {
|
|
79
112
|
readonly indexed: true;
|
|
80
113
|
readonly internalType: "address";
|
|
81
114
|
readonly name: "publisher";
|
|
82
115
|
readonly type: "address";
|
|
83
116
|
}, {
|
|
84
|
-
readonly indexed:
|
|
117
|
+
readonly indexed: false;
|
|
118
|
+
readonly internalType: "bytes32";
|
|
119
|
+
readonly name: "subspace_id";
|
|
120
|
+
readonly type: "bytes32";
|
|
121
|
+
}, {
|
|
122
|
+
readonly indexed: false;
|
|
85
123
|
readonly internalType: "bytes32";
|
|
86
124
|
readonly name: "old_root";
|
|
87
125
|
readonly type: "bytes32";
|
|
88
126
|
}, {
|
|
89
|
-
readonly indexed:
|
|
127
|
+
readonly indexed: false;
|
|
90
128
|
readonly internalType: "bytes32";
|
|
91
129
|
readonly name: "new_root";
|
|
92
130
|
readonly type: "bytes32";
|
|
@@ -105,6 +143,14 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
105
143
|
readonly type: "function";
|
|
106
144
|
}, {
|
|
107
145
|
readonly inputs: readonly [{
|
|
146
|
+
readonly internalType: "bytes32";
|
|
147
|
+
readonly name: "app_id";
|
|
148
|
+
readonly type: "bytes32";
|
|
149
|
+
}, {
|
|
150
|
+
readonly internalType: "bytes32";
|
|
151
|
+
readonly name: "subspace_id";
|
|
152
|
+
readonly type: "bytes32";
|
|
153
|
+
}, {
|
|
108
154
|
readonly internalType: "bytes32";
|
|
109
155
|
readonly name: "old_root";
|
|
110
156
|
readonly type: "bytes32";
|
|
@@ -119,9 +165,31 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
119
165
|
readonly type: "function";
|
|
120
166
|
}, {
|
|
121
167
|
readonly inputs: readonly [{
|
|
168
|
+
readonly internalType: "bytes32";
|
|
169
|
+
readonly name: "app_id";
|
|
170
|
+
readonly type: "bytes32";
|
|
171
|
+
}];
|
|
172
|
+
readonly name: "getAppOwner";
|
|
173
|
+
readonly outputs: readonly [{
|
|
174
|
+
readonly internalType: "address";
|
|
175
|
+
readonly name: "";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
}];
|
|
178
|
+
readonly stateMutability: "view";
|
|
179
|
+
readonly type: "function";
|
|
180
|
+
}, {
|
|
181
|
+
readonly inputs: readonly [{
|
|
182
|
+
readonly internalType: "bytes32";
|
|
183
|
+
readonly name: "app_id";
|
|
184
|
+
readonly type: "bytes32";
|
|
185
|
+
}, {
|
|
122
186
|
readonly internalType: "address";
|
|
123
187
|
readonly name: "publisher";
|
|
124
188
|
readonly type: "address";
|
|
189
|
+
}, {
|
|
190
|
+
readonly internalType: "bytes32";
|
|
191
|
+
readonly name: "subspace_id";
|
|
192
|
+
readonly type: "bytes32";
|
|
125
193
|
}];
|
|
126
194
|
readonly name: "getNamespaceHead";
|
|
127
195
|
readonly outputs: readonly [{
|
|
@@ -175,6 +243,16 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
175
243
|
readonly outputs: readonly [];
|
|
176
244
|
readonly stateMutability: "payable";
|
|
177
245
|
readonly type: "function";
|
|
246
|
+
}, {
|
|
247
|
+
readonly inputs: readonly [{
|
|
248
|
+
readonly internalType: "bytes32";
|
|
249
|
+
readonly name: "app_id";
|
|
250
|
+
readonly type: "bytes32";
|
|
251
|
+
}];
|
|
252
|
+
readonly name: "registerApp";
|
|
253
|
+
readonly outputs: readonly [];
|
|
254
|
+
readonly stateMutability: "nonpayable";
|
|
255
|
+
readonly type: "function";
|
|
178
256
|
}, {
|
|
179
257
|
readonly inputs: readonly [];
|
|
180
258
|
readonly name: "registrationFee";
|