@fangorn-network/sdk 0.1.3 → 0.1.5
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/lib/cli/cli.js +22 -2
- package/lib/cli/sell.js +5 -4
- package/lib/config.d.ts +5 -0
- package/lib/config.js +5 -2
- package/lib/contracts/data-registry/abi.d.ts +12 -0
- package/lib/contracts/data-registry/abi.js +15 -0
- package/lib/contracts/data-registry/index.d.ts +18 -0
- package/lib/contracts/data-registry/index.js +22 -2
- package/lib/contracts/data-registry/mmr.d.ts +23 -0
- package/lib/contracts/data-registry/mmr.js +65 -0
- package/lib/contracts/index.d.ts +2 -1
- package/lib/contracts/index.js +2 -1
- package/lib/engine/index.d.ts +86 -16
- package/lib/engine/index.js +264 -37
- package/lib/engine/records.d.ts +28 -12
- package/lib/engine/records.js +1 -0
- package/lib/engine/test-helpers.d.ts +2 -0
- package/lib/engine/test-helpers.js +7 -0
- package/lib/fangorn.d.ts +38 -2
- package/lib/fangorn.js +63 -2
- package/lib/index.d.ts +5 -2
- package/lib/index.js +3 -2
- package/lib/test/mem-registry.d.ts +10 -0
- package/lib/test/mem-registry.js +15 -0
- package/lib/test/testbed.d.ts +114 -114
- package/package.json +2 -4
package/lib/test/testbed.d.ts
CHANGED
|
@@ -3778,7 +3778,7 @@ declare function chainNetwork(): Promise<{
|
|
|
3778
3778
|
authorizationList: viem162.TransactionSerializableEIP7702["authorizationList"];
|
|
3779
3779
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_25 extends "eip7702" ? viem162.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
3780
3780
|
chainId?: number | undefined;
|
|
3781
|
-
}, (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "
|
|
3781
|
+
}, (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem162.UnionRequiredBy<Extract<viem162.UnionOmit<viem162.ExtractChainFormatterParameters<viem162.DeriveChain<{
|
|
3782
3782
|
id: 84532;
|
|
3783
3783
|
blockExplorers?: {
|
|
3784
3784
|
[key: string]: {
|
|
@@ -7189,7 +7189,7 @@ declare function chainNetwork(): Promise<{
|
|
|
7189
7189
|
authorizationList: viem162.TransactionSerializableEIP7702["authorizationList"];
|
|
7190
7190
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem162.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
7191
7191
|
chainId?: number | undefined;
|
|
7192
|
-
}, (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "
|
|
7192
|
+
}, (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K] } : never>;
|
|
7193
7193
|
requestAddresses: () => Promise<viem162.RequestAddressesReturnType>;
|
|
7194
7194
|
requestPermissions: (args: viem162.RequestPermissionsParameters) => Promise<viem162.RequestPermissionsReturnType>;
|
|
7195
7195
|
sendCalls: <const calls extends readonly unknown[], chainOverride extends viem162.Chain | undefined = undefined>(parameters: viem162.SendCallsParameters<{
|
|
@@ -7305,8 +7305,9 @@ declare function chainNetwork(): Promise<{
|
|
|
7305
7305
|
serializers?: viem162.ChainSerializers<undefined, viem162.TransactionSerializable> | undefined;
|
|
7306
7306
|
verifyHash?: ((client: viem162.Client, parameters: viem162.VerifyHashActionParameters) => Promise<viem162.VerifyHashActionReturnType>) | undefined;
|
|
7307
7307
|
}, undefined, chainOverride, calls>) => Promise<{
|
|
7308
|
-
|
|
7308
|
+
version: string;
|
|
7309
7309
|
chainId: number;
|
|
7310
|
+
id: string;
|
|
7310
7311
|
atomic: boolean;
|
|
7311
7312
|
capabilities?: {
|
|
7312
7313
|
[key: string]: any;
|
|
@@ -7314,7 +7315,6 @@ declare function chainNetwork(): Promise<{
|
|
|
7314
7315
|
[x: string]: any;
|
|
7315
7316
|
} | undefined;
|
|
7316
7317
|
receipts?: viem162.WalletCallReceipt<bigint, "success" | "reverted">[] | undefined;
|
|
7317
|
-
version: string;
|
|
7318
7318
|
statusCode: number;
|
|
7319
7319
|
status: "pending" | "success" | "failure" | undefined;
|
|
7320
7320
|
}>;
|
|
@@ -8592,26 +8592,31 @@ declare function chainNetwork(): Promise<{
|
|
|
8592
8592
|
[x: string]: readonly viem162.TypedDataParameter[];
|
|
8593
8593
|
[x: `string[${string}]`]: undefined;
|
|
8594
8594
|
[x: `function[${string}]`]: undefined;
|
|
8595
|
+
[x: `bytes32[${string}]`]: undefined;
|
|
8595
8596
|
[x: `address[${string}]`]: undefined;
|
|
8596
8597
|
[x: `bool[${string}]`]: undefined;
|
|
8597
|
-
[x: `bytes[${string}]`]: undefined;
|
|
8598
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
8599
8598
|
[x: `bytes1[${string}]`]: undefined;
|
|
8599
|
+
[x: `uint256[${string}]`]: undefined;
|
|
8600
|
+
[x: `uint64[${string}]`]: undefined;
|
|
8601
|
+
[x: `uint16[${string}]`]: undefined;
|
|
8602
|
+
[x: `bytes[${string}]`]: undefined;
|
|
8603
|
+
[x: `uint8[${string}]`]: undefined;
|
|
8600
8604
|
[x: `bytes2[${string}]`]: undefined;
|
|
8601
|
-
[x: `
|
|
8605
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
8606
|
+
[x: `bytes12[${string}]`]: undefined;
|
|
8607
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
8602
8608
|
[x: `bytes4[${string}]`]: undefined;
|
|
8603
|
-
[x: `bytes5[${string}]`]: undefined;
|
|
8604
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
8605
8609
|
[x: `bytes7[${string}]`]: undefined;
|
|
8610
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
8606
8611
|
[x: `bytes8[${string}]`]: undefined;
|
|
8612
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
8613
|
+
[x: `bytes5[${string}]`]: undefined;
|
|
8607
8614
|
[x: `bytes9[${string}]`]: undefined;
|
|
8608
8615
|
[x: `bytes10[${string}]`]: undefined;
|
|
8609
8616
|
[x: `bytes11[${string}]`]: undefined;
|
|
8610
|
-
[x: `bytes12[${string}]`]: undefined;
|
|
8611
8617
|
[x: `bytes13[${string}]`]: undefined;
|
|
8612
8618
|
[x: `bytes14[${string}]`]: undefined;
|
|
8613
8619
|
[x: `bytes15[${string}]`]: undefined;
|
|
8614
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
8615
8620
|
[x: `bytes17[${string}]`]: undefined;
|
|
8616
8621
|
[x: `bytes19[${string}]`]: undefined;
|
|
8617
8622
|
[x: `bytes20[${string}]`]: undefined;
|
|
@@ -8626,12 +8631,13 @@ declare function chainNetwork(): Promise<{
|
|
|
8626
8631
|
[x: `bytes29[${string}]`]: undefined;
|
|
8627
8632
|
[x: `bytes30[${string}]`]: undefined;
|
|
8628
8633
|
[x: `bytes31[${string}]`]: undefined;
|
|
8629
|
-
[x: `bytes32[${string}]`]: undefined;
|
|
8630
8634
|
[x: `int[${string}]`]: undefined;
|
|
8631
|
-
[x: `
|
|
8635
|
+
[x: `int112[${string}]`]: undefined;
|
|
8636
|
+
[x: `int32[${string}]`]: undefined;
|
|
8632
8637
|
[x: `int16[${string}]`]: undefined;
|
|
8638
|
+
[x: `int256[${string}]`]: undefined;
|
|
8639
|
+
[x: `int8[${string}]`]: undefined;
|
|
8633
8640
|
[x: `int24[${string}]`]: undefined;
|
|
8634
|
-
[x: `int32[${string}]`]: undefined;
|
|
8635
8641
|
[x: `int40[${string}]`]: undefined;
|
|
8636
8642
|
[x: `int48[${string}]`]: undefined;
|
|
8637
8643
|
[x: `int56[${string}]`]: undefined;
|
|
@@ -8641,7 +8647,6 @@ declare function chainNetwork(): Promise<{
|
|
|
8641
8647
|
[x: `int88[${string}]`]: undefined;
|
|
8642
8648
|
[x: `int96[${string}]`]: undefined;
|
|
8643
8649
|
[x: `int104[${string}]`]: undefined;
|
|
8644
|
-
[x: `int112[${string}]`]: undefined;
|
|
8645
8650
|
[x: `int120[${string}]`]: undefined;
|
|
8646
8651
|
[x: `int128[${string}]`]: undefined;
|
|
8647
8652
|
[x: `int136[${string}]`]: undefined;
|
|
@@ -8659,22 +8664,18 @@ declare function chainNetwork(): Promise<{
|
|
|
8659
8664
|
[x: `int232[${string}]`]: undefined;
|
|
8660
8665
|
[x: `int240[${string}]`]: undefined;
|
|
8661
8666
|
[x: `int248[${string}]`]: undefined;
|
|
8662
|
-
[x: `int256[${string}]`]: undefined;
|
|
8663
8667
|
[x: `uint[${string}]`]: undefined;
|
|
8664
|
-
[x: `
|
|
8665
|
-
[x: `uint16[${string}]`]: undefined;
|
|
8666
|
-
[x: `uint24[${string}]`]: undefined;
|
|
8668
|
+
[x: `uint112[${string}]`]: undefined;
|
|
8667
8669
|
[x: `uint32[${string}]`]: undefined;
|
|
8670
|
+
[x: `uint24[${string}]`]: undefined;
|
|
8668
8671
|
[x: `uint40[${string}]`]: undefined;
|
|
8669
8672
|
[x: `uint48[${string}]`]: undefined;
|
|
8670
8673
|
[x: `uint56[${string}]`]: undefined;
|
|
8671
|
-
[x: `uint64[${string}]`]: undefined;
|
|
8672
8674
|
[x: `uint72[${string}]`]: undefined;
|
|
8673
8675
|
[x: `uint80[${string}]`]: undefined;
|
|
8674
8676
|
[x: `uint88[${string}]`]: undefined;
|
|
8675
8677
|
[x: `uint96[${string}]`]: undefined;
|
|
8676
8678
|
[x: `uint104[${string}]`]: undefined;
|
|
8677
|
-
[x: `uint112[${string}]`]: undefined;
|
|
8678
8679
|
[x: `uint120[${string}]`]: undefined;
|
|
8679
8680
|
[x: `uint128[${string}]`]: undefined;
|
|
8680
8681
|
[x: `uint136[${string}]`]: undefined;
|
|
@@ -8692,28 +8693,32 @@ declare function chainNetwork(): Promise<{
|
|
|
8692
8693
|
[x: `uint232[${string}]`]: undefined;
|
|
8693
8694
|
[x: `uint240[${string}]`]: undefined;
|
|
8694
8695
|
[x: `uint248[${string}]`]: undefined;
|
|
8695
|
-
[x: `uint256[${string}]`]: undefined;
|
|
8696
8696
|
string?: undefined;
|
|
8697
|
+
bytes32?: undefined;
|
|
8697
8698
|
address?: undefined;
|
|
8698
8699
|
bool?: undefined;
|
|
8699
|
-
bytes?: undefined;
|
|
8700
|
-
bytes18?: undefined;
|
|
8701
8700
|
bytes1?: undefined;
|
|
8701
|
+
uint256?: undefined;
|
|
8702
|
+
uint64?: undefined;
|
|
8703
|
+
uint16?: undefined;
|
|
8704
|
+
bytes?: undefined;
|
|
8705
|
+
uint8?: undefined;
|
|
8702
8706
|
bytes2?: undefined;
|
|
8703
|
-
|
|
8707
|
+
bytes18?: undefined;
|
|
8708
|
+
bytes12?: undefined;
|
|
8709
|
+
bytes16?: undefined;
|
|
8704
8710
|
bytes4?: undefined;
|
|
8705
|
-
bytes5?: undefined;
|
|
8706
|
-
bytes6?: undefined;
|
|
8707
8711
|
bytes7?: undefined;
|
|
8712
|
+
bytes3?: undefined;
|
|
8708
8713
|
bytes8?: undefined;
|
|
8714
|
+
bytes6?: undefined;
|
|
8715
|
+
bytes5?: undefined;
|
|
8709
8716
|
bytes9?: undefined;
|
|
8710
8717
|
bytes10?: undefined;
|
|
8711
8718
|
bytes11?: undefined;
|
|
8712
|
-
bytes12?: undefined;
|
|
8713
8719
|
bytes13?: undefined;
|
|
8714
8720
|
bytes14?: undefined;
|
|
8715
8721
|
bytes15?: undefined;
|
|
8716
|
-
bytes16?: undefined;
|
|
8717
8722
|
bytes17?: undefined;
|
|
8718
8723
|
bytes19?: undefined;
|
|
8719
8724
|
bytes20?: undefined;
|
|
@@ -8728,11 +8733,12 @@ declare function chainNetwork(): Promise<{
|
|
|
8728
8733
|
bytes29?: undefined;
|
|
8729
8734
|
bytes30?: undefined;
|
|
8730
8735
|
bytes31?: undefined;
|
|
8731
|
-
|
|
8732
|
-
|
|
8736
|
+
int112?: undefined;
|
|
8737
|
+
int32?: undefined;
|
|
8733
8738
|
int16?: undefined;
|
|
8739
|
+
int256?: undefined;
|
|
8740
|
+
int8?: undefined;
|
|
8734
8741
|
int24?: undefined;
|
|
8735
|
-
int32?: undefined;
|
|
8736
8742
|
int40?: undefined;
|
|
8737
8743
|
int48?: undefined;
|
|
8738
8744
|
int56?: undefined;
|
|
@@ -8742,7 +8748,6 @@ declare function chainNetwork(): Promise<{
|
|
|
8742
8748
|
int88?: undefined;
|
|
8743
8749
|
int96?: undefined;
|
|
8744
8750
|
int104?: undefined;
|
|
8745
|
-
int112?: undefined;
|
|
8746
8751
|
int120?: undefined;
|
|
8747
8752
|
int128?: undefined;
|
|
8748
8753
|
int136?: undefined;
|
|
@@ -8760,21 +8765,17 @@ declare function chainNetwork(): Promise<{
|
|
|
8760
8765
|
int232?: undefined;
|
|
8761
8766
|
int240?: undefined;
|
|
8762
8767
|
int248?: undefined;
|
|
8763
|
-
|
|
8764
|
-
uint8?: undefined;
|
|
8765
|
-
uint16?: undefined;
|
|
8766
|
-
uint24?: undefined;
|
|
8768
|
+
uint112?: undefined;
|
|
8767
8769
|
uint32?: undefined;
|
|
8770
|
+
uint24?: undefined;
|
|
8768
8771
|
uint40?: undefined;
|
|
8769
8772
|
uint48?: undefined;
|
|
8770
8773
|
uint56?: undefined;
|
|
8771
|
-
uint64?: undefined;
|
|
8772
8774
|
uint72?: undefined;
|
|
8773
8775
|
uint80?: undefined;
|
|
8774
8776
|
uint88?: undefined;
|
|
8775
8777
|
uint96?: undefined;
|
|
8776
8778
|
uint104?: undefined;
|
|
8777
|
-
uint112?: undefined;
|
|
8778
8779
|
uint120?: undefined;
|
|
8779
8780
|
uint128?: undefined;
|
|
8780
8781
|
uint136?: undefined;
|
|
@@ -8792,7 +8793,6 @@ declare function chainNetwork(): Promise<{
|
|
|
8792
8793
|
uint232?: undefined;
|
|
8793
8794
|
uint240?: undefined;
|
|
8794
8795
|
uint248?: undefined;
|
|
8795
|
-
uint256?: undefined;
|
|
8796
8796
|
} | {
|
|
8797
8797
|
[key: string]: unknown;
|
|
8798
8798
|
}, primaryType extends string>(args: viem162.SignTypedDataParameters<typedData, primaryType, undefined>) => Promise<viem162.SignTypedDataReturnType>;
|
|
@@ -9189,8 +9189,8 @@ declare function chainNetwork(): Promise<{
|
|
|
9189
9189
|
getBlobBaseFee: () => Promise<viem162.GetBlobBaseFeeReturnType>;
|
|
9190
9190
|
getBlock: <includeTransactions extends boolean = false, blockTag extends viem162.BlockTag = "latest">(args?: viem162.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
|
|
9191
9191
|
number: blockTag extends "pending" ? null : bigint;
|
|
9192
|
-
hash: blockTag extends "pending" ? null : `0x${string}`;
|
|
9193
9192
|
nonce: blockTag extends "pending" ? null : `0x${string}`;
|
|
9193
|
+
hash: blockTag extends "pending" ? null : `0x${string}`;
|
|
9194
9194
|
logsBloom: blockTag extends "pending" ? null : `0x${string}`;
|
|
9195
9195
|
baseFeePerGas: bigint | null;
|
|
9196
9196
|
blobGasUsed: bigint;
|
|
@@ -9215,22 +9215,22 @@ declare function chainNetwork(): Promise<{
|
|
|
9215
9215
|
withdrawals?: viem162.Withdrawal[] | undefined | undefined;
|
|
9216
9216
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
9217
9217
|
transactions: includeTransactions extends true ? ({
|
|
9218
|
-
|
|
9218
|
+
value: bigint;
|
|
9219
|
+
chainId?: number | undefined;
|
|
9219
9220
|
from: Address;
|
|
9220
|
-
gas: bigint;
|
|
9221
|
-
hash: viem162.Hash;
|
|
9222
|
-
input: Hex;
|
|
9223
9221
|
nonce: number;
|
|
9222
|
+
v: bigint;
|
|
9224
9223
|
r: Hex;
|
|
9225
9224
|
s: Hex;
|
|
9225
|
+
yParity?: undefined | undefined;
|
|
9226
|
+
gas: bigint;
|
|
9227
|
+
hash: viem162.Hash;
|
|
9228
|
+
input: Hex;
|
|
9226
9229
|
to: Address | null;
|
|
9227
9230
|
typeHex: Hex | null;
|
|
9228
|
-
v: bigint;
|
|
9229
|
-
value: bigint;
|
|
9230
9231
|
accessList?: undefined | undefined;
|
|
9231
9232
|
authorizationList?: undefined | undefined;
|
|
9232
9233
|
blobVersionedHashes?: undefined | undefined;
|
|
9233
|
-
chainId?: number | undefined;
|
|
9234
9234
|
type: "legacy";
|
|
9235
9235
|
gasPrice: bigint;
|
|
9236
9236
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -9240,22 +9240,22 @@ declare function chainNetwork(): Promise<{
|
|
|
9240
9240
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
9241
9241
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
9242
9242
|
} | {
|
|
9243
|
-
|
|
9243
|
+
value: bigint;
|
|
9244
|
+
chainId: number;
|
|
9244
9245
|
from: Address;
|
|
9245
|
-
gas: bigint;
|
|
9246
|
-
hash: viem162.Hash;
|
|
9247
|
-
input: Hex;
|
|
9248
9246
|
nonce: number;
|
|
9247
|
+
v: bigint;
|
|
9249
9248
|
r: Hex;
|
|
9250
9249
|
s: Hex;
|
|
9250
|
+
yParity: number;
|
|
9251
|
+
gas: bigint;
|
|
9252
|
+
hash: viem162.Hash;
|
|
9253
|
+
input: Hex;
|
|
9251
9254
|
to: Address | null;
|
|
9252
9255
|
typeHex: Hex | null;
|
|
9253
|
-
v: bigint;
|
|
9254
|
-
value: bigint;
|
|
9255
9256
|
accessList: viem162.AccessList;
|
|
9256
9257
|
authorizationList?: undefined | undefined;
|
|
9257
9258
|
blobVersionedHashes?: undefined | undefined;
|
|
9258
|
-
chainId: number;
|
|
9259
9259
|
type: "eip2930";
|
|
9260
9260
|
gasPrice: bigint;
|
|
9261
9261
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -9265,22 +9265,22 @@ declare function chainNetwork(): Promise<{
|
|
|
9265
9265
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
9266
9266
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
9267
9267
|
} | {
|
|
9268
|
-
|
|
9268
|
+
value: bigint;
|
|
9269
|
+
chainId: number;
|
|
9269
9270
|
from: Address;
|
|
9270
|
-
gas: bigint;
|
|
9271
|
-
hash: viem162.Hash;
|
|
9272
|
-
input: Hex;
|
|
9273
9271
|
nonce: number;
|
|
9272
|
+
v: bigint;
|
|
9274
9273
|
r: Hex;
|
|
9275
9274
|
s: Hex;
|
|
9275
|
+
yParity: number;
|
|
9276
|
+
gas: bigint;
|
|
9277
|
+
hash: viem162.Hash;
|
|
9278
|
+
input: Hex;
|
|
9276
9279
|
to: Address | null;
|
|
9277
9280
|
typeHex: Hex | null;
|
|
9278
|
-
v: bigint;
|
|
9279
|
-
value: bigint;
|
|
9280
9281
|
accessList: viem162.AccessList;
|
|
9281
9282
|
authorizationList?: undefined | undefined;
|
|
9282
9283
|
blobVersionedHashes?: undefined | undefined;
|
|
9283
|
-
chainId: number;
|
|
9284
9284
|
type: "eip1559";
|
|
9285
9285
|
gasPrice?: undefined | undefined;
|
|
9286
9286
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -9290,22 +9290,22 @@ declare function chainNetwork(): Promise<{
|
|
|
9290
9290
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
9291
9291
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
9292
9292
|
} | {
|
|
9293
|
-
|
|
9293
|
+
value: bigint;
|
|
9294
|
+
chainId: number;
|
|
9294
9295
|
from: Address;
|
|
9295
|
-
gas: bigint;
|
|
9296
|
-
hash: viem162.Hash;
|
|
9297
|
-
input: Hex;
|
|
9298
9296
|
nonce: number;
|
|
9297
|
+
v: bigint;
|
|
9299
9298
|
r: Hex;
|
|
9300
9299
|
s: Hex;
|
|
9300
|
+
yParity: number;
|
|
9301
|
+
gas: bigint;
|
|
9302
|
+
hash: viem162.Hash;
|
|
9303
|
+
input: Hex;
|
|
9301
9304
|
to: Address | null;
|
|
9302
9305
|
typeHex: Hex | null;
|
|
9303
|
-
v: bigint;
|
|
9304
|
-
value: bigint;
|
|
9305
9306
|
accessList: viem162.AccessList;
|
|
9306
9307
|
authorizationList?: undefined | undefined;
|
|
9307
9308
|
blobVersionedHashes: readonly Hex[];
|
|
9308
|
-
chainId: number;
|
|
9309
9309
|
type: "eip4844";
|
|
9310
9310
|
gasPrice?: undefined | undefined;
|
|
9311
9311
|
maxFeePerBlobGas: bigint;
|
|
@@ -9315,22 +9315,22 @@ declare function chainNetwork(): Promise<{
|
|
|
9315
9315
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
9316
9316
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
9317
9317
|
} | {
|
|
9318
|
-
|
|
9318
|
+
value: bigint;
|
|
9319
|
+
chainId: number;
|
|
9319
9320
|
from: Address;
|
|
9320
|
-
gas: bigint;
|
|
9321
|
-
hash: viem162.Hash;
|
|
9322
|
-
input: Hex;
|
|
9323
9321
|
nonce: number;
|
|
9322
|
+
v: bigint;
|
|
9324
9323
|
r: Hex;
|
|
9325
9324
|
s: Hex;
|
|
9325
|
+
yParity: number;
|
|
9326
|
+
gas: bigint;
|
|
9327
|
+
hash: viem162.Hash;
|
|
9328
|
+
input: Hex;
|
|
9326
9329
|
to: Address | null;
|
|
9327
9330
|
typeHex: Hex | null;
|
|
9328
|
-
v: bigint;
|
|
9329
|
-
value: bigint;
|
|
9330
9331
|
accessList: viem162.AccessList;
|
|
9331
9332
|
authorizationList: viem162.SignedAuthorizationList;
|
|
9332
9333
|
blobVersionedHashes?: undefined | undefined;
|
|
9333
|
-
chainId: number;
|
|
9334
9334
|
type: "eip7702";
|
|
9335
9335
|
gasPrice?: undefined | undefined;
|
|
9336
9336
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -9419,22 +9419,22 @@ declare function chainNetwork(): Promise<{
|
|
|
9419
9419
|
} | undefined) => Promise<viem162.EstimateMaxPriorityFeePerGasReturnType>;
|
|
9420
9420
|
getStorageAt: (args: viem162.GetStorageAtParameters) => Promise<viem162.GetStorageAtReturnType>;
|
|
9421
9421
|
getTransaction: <blockTag extends viem162.BlockTag = "latest">(args: viem162.GetTransactionParameters<blockTag>) => Promise<{
|
|
9422
|
-
|
|
9422
|
+
value: bigint;
|
|
9423
|
+
chainId?: number | undefined;
|
|
9423
9424
|
from: Address;
|
|
9424
|
-
gas: bigint;
|
|
9425
|
-
hash: viem162.Hash;
|
|
9426
|
-
input: Hex;
|
|
9427
9425
|
nonce: number;
|
|
9426
|
+
v: bigint;
|
|
9428
9427
|
r: Hex;
|
|
9429
9428
|
s: Hex;
|
|
9429
|
+
yParity?: undefined | undefined;
|
|
9430
|
+
gas: bigint;
|
|
9431
|
+
hash: viem162.Hash;
|
|
9432
|
+
input: Hex;
|
|
9430
9433
|
to: Address | null;
|
|
9431
9434
|
typeHex: Hex | null;
|
|
9432
|
-
v: bigint;
|
|
9433
|
-
value: bigint;
|
|
9434
9435
|
accessList?: undefined | undefined;
|
|
9435
9436
|
authorizationList?: undefined | undefined;
|
|
9436
9437
|
blobVersionedHashes?: undefined | undefined;
|
|
9437
|
-
chainId?: number | undefined;
|
|
9438
9438
|
type: "legacy";
|
|
9439
9439
|
gasPrice: bigint;
|
|
9440
9440
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -9444,22 +9444,22 @@ declare function chainNetwork(): Promise<{
|
|
|
9444
9444
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
9445
9445
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
9446
9446
|
} | {
|
|
9447
|
-
|
|
9447
|
+
value: bigint;
|
|
9448
|
+
chainId: number;
|
|
9448
9449
|
from: Address;
|
|
9449
|
-
gas: bigint;
|
|
9450
|
-
hash: viem162.Hash;
|
|
9451
|
-
input: Hex;
|
|
9452
9450
|
nonce: number;
|
|
9451
|
+
v: bigint;
|
|
9453
9452
|
r: Hex;
|
|
9454
9453
|
s: Hex;
|
|
9454
|
+
yParity: number;
|
|
9455
|
+
gas: bigint;
|
|
9456
|
+
hash: viem162.Hash;
|
|
9457
|
+
input: Hex;
|
|
9455
9458
|
to: Address | null;
|
|
9456
9459
|
typeHex: Hex | null;
|
|
9457
|
-
v: bigint;
|
|
9458
|
-
value: bigint;
|
|
9459
9460
|
accessList: viem162.AccessList;
|
|
9460
9461
|
authorizationList?: undefined | undefined;
|
|
9461
9462
|
blobVersionedHashes?: undefined | undefined;
|
|
9462
|
-
chainId: number;
|
|
9463
9463
|
type: "eip2930";
|
|
9464
9464
|
gasPrice: bigint;
|
|
9465
9465
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -9469,22 +9469,22 @@ declare function chainNetwork(): Promise<{
|
|
|
9469
9469
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
9470
9470
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
9471
9471
|
} | {
|
|
9472
|
-
|
|
9472
|
+
value: bigint;
|
|
9473
|
+
chainId: number;
|
|
9473
9474
|
from: Address;
|
|
9474
|
-
gas: bigint;
|
|
9475
|
-
hash: viem162.Hash;
|
|
9476
|
-
input: Hex;
|
|
9477
9475
|
nonce: number;
|
|
9476
|
+
v: bigint;
|
|
9478
9477
|
r: Hex;
|
|
9479
9478
|
s: Hex;
|
|
9479
|
+
yParity: number;
|
|
9480
|
+
gas: bigint;
|
|
9481
|
+
hash: viem162.Hash;
|
|
9482
|
+
input: Hex;
|
|
9480
9483
|
to: Address | null;
|
|
9481
9484
|
typeHex: Hex | null;
|
|
9482
|
-
v: bigint;
|
|
9483
|
-
value: bigint;
|
|
9484
9485
|
accessList: viem162.AccessList;
|
|
9485
9486
|
authorizationList?: undefined | undefined;
|
|
9486
9487
|
blobVersionedHashes?: undefined | undefined;
|
|
9487
|
-
chainId: number;
|
|
9488
9488
|
type: "eip1559";
|
|
9489
9489
|
gasPrice?: undefined | undefined;
|
|
9490
9490
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -9494,22 +9494,22 @@ declare function chainNetwork(): Promise<{
|
|
|
9494
9494
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
9495
9495
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
9496
9496
|
} | {
|
|
9497
|
-
|
|
9497
|
+
value: bigint;
|
|
9498
|
+
chainId: number;
|
|
9498
9499
|
from: Address;
|
|
9499
|
-
gas: bigint;
|
|
9500
|
-
hash: viem162.Hash;
|
|
9501
|
-
input: Hex;
|
|
9502
9500
|
nonce: number;
|
|
9501
|
+
v: bigint;
|
|
9503
9502
|
r: Hex;
|
|
9504
9503
|
s: Hex;
|
|
9504
|
+
yParity: number;
|
|
9505
|
+
gas: bigint;
|
|
9506
|
+
hash: viem162.Hash;
|
|
9507
|
+
input: Hex;
|
|
9505
9508
|
to: Address | null;
|
|
9506
9509
|
typeHex: Hex | null;
|
|
9507
|
-
v: bigint;
|
|
9508
|
-
value: bigint;
|
|
9509
9510
|
accessList: viem162.AccessList;
|
|
9510
9511
|
authorizationList?: undefined | undefined;
|
|
9511
9512
|
blobVersionedHashes: readonly Hex[];
|
|
9512
|
-
chainId: number;
|
|
9513
9513
|
type: "eip4844";
|
|
9514
9514
|
gasPrice?: undefined | undefined;
|
|
9515
9515
|
maxFeePerBlobGas: bigint;
|
|
@@ -9519,22 +9519,22 @@ declare function chainNetwork(): Promise<{
|
|
|
9519
9519
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
9520
9520
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
9521
9521
|
} | {
|
|
9522
|
-
|
|
9522
|
+
value: bigint;
|
|
9523
|
+
chainId: number;
|
|
9523
9524
|
from: Address;
|
|
9524
|
-
gas: bigint;
|
|
9525
|
-
hash: viem162.Hash;
|
|
9526
|
-
input: Hex;
|
|
9527
9525
|
nonce: number;
|
|
9526
|
+
v: bigint;
|
|
9528
9527
|
r: Hex;
|
|
9529
9528
|
s: Hex;
|
|
9529
|
+
yParity: number;
|
|
9530
|
+
gas: bigint;
|
|
9531
|
+
hash: viem162.Hash;
|
|
9532
|
+
input: Hex;
|
|
9530
9533
|
to: Address | null;
|
|
9531
9534
|
typeHex: Hex | null;
|
|
9532
|
-
v: bigint;
|
|
9533
|
-
value: bigint;
|
|
9534
9535
|
accessList: viem162.AccessList;
|
|
9535
9536
|
authorizationList: viem162.SignedAuthorizationList;
|
|
9536
9537
|
blobVersionedHashes?: undefined | undefined;
|
|
9537
|
-
chainId: number;
|
|
9538
9538
|
type: "eip7702";
|
|
9539
9539
|
gasPrice?: undefined | undefined;
|
|
9540
9540
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -13118,7 +13118,7 @@ declare function chainNetwork(): Promise<{
|
|
|
13118
13118
|
authorizationList: viem162.TransactionSerializableEIP7702["authorizationList"];
|
|
13119
13119
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_25 extends "eip7702" ? viem162.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
13120
13120
|
chainId?: number | undefined;
|
|
13121
|
-
}, (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "
|
|
13121
|
+
}, (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem162.UnionRequiredBy<Extract<viem162.UnionOmit<viem162.ExtractChainFormatterParameters<viem162.DeriveChain<{
|
|
13122
13122
|
id: 84532;
|
|
13123
13123
|
blockExplorers?: {
|
|
13124
13124
|
[key: string]: {
|
|
@@ -16529,7 +16529,7 @@ declare function chainNetwork(): Promise<{
|
|
|
16529
16529
|
authorizationList: viem162.TransactionSerializableEIP7702["authorizationList"];
|
|
16530
16530
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem162.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
16531
16531
|
chainId?: number | undefined;
|
|
16532
|
-
}, (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "
|
|
16532
|
+
}, (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem162.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K] } : never>;
|
|
16533
16533
|
readContract: <const abi extends Abi | readonly unknown[], functionName extends viem162.ContractFunctionName<abi, "pure" | "view">, const args extends viem162.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem162.ReadContractParameters<abi, functionName, args>) => Promise<viem162.ReadContractReturnType<abi, functionName, args>>;
|
|
16534
16534
|
sendRawTransaction: (args: viem162.SendRawTransactionParameters) => Promise<viem162.SendRawTransactionReturnType>;
|
|
16535
16535
|
sendRawTransactionSync: (args: viem162.SendRawTransactionSyncParameters) => Promise<viem162.TransactionReceipt>;
|
|
@@ -16648,8 +16648,8 @@ declare function chainNetwork(): Promise<{
|
|
|
16648
16648
|
verifySiweMessage: (args: {
|
|
16649
16649
|
blockNumber?: bigint | undefined | undefined;
|
|
16650
16650
|
blockTag?: viem162.BlockTag | undefined;
|
|
16651
|
-
nonce?: string | undefined | undefined;
|
|
16652
16651
|
address?: `0x${string}` | undefined;
|
|
16652
|
+
nonce?: string | undefined | undefined;
|
|
16653
16653
|
domain?: string | undefined | undefined;
|
|
16654
16654
|
scheme?: string | undefined | undefined;
|
|
16655
16655
|
time?: Date | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangorn-network/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "decentralized, verifiable and platformless content management framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "tsdown",
|
|
20
|
+
"prepack": "pnpm build",
|
|
20
21
|
"format": "prettier . --write",
|
|
21
22
|
"lint": "eslint . --max-warnings 0",
|
|
22
23
|
"prepare": "husky",
|
|
@@ -25,9 +26,6 @@
|
|
|
25
26
|
"test:live": "vitest run --config vitest.e2e.config.ts src/e2e/live.e2e.test.ts",
|
|
26
27
|
"abis": "scripts/gen-abis.sh",
|
|
27
28
|
"tsc": "tsc",
|
|
28
|
-
"deploy": "dotenvx run -f .env -- tsx deploy.ts",
|
|
29
|
-
"setup:embeddings": "dotenvx run -f .env -- tsx src/test/setup-embeddings-testdata.ts",
|
|
30
|
-
"cleanup:embeddings": "dotenvx run -f .env -- tsx src/test/cleanup-embeddings-testdata.ts",
|
|
31
29
|
"prepare:cli": "npm run build",
|
|
32
30
|
"fangorn": "dotenvx run -f .env -- node dist/src/cli/cli.js"
|
|
33
31
|
},
|