@arkiv-network/sdk 0.6.5-dev.11 → 0.6.5-dev.12
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 +7 -7
- package/dist/chains/index.d.cts +49 -49
- package/dist/chains/index.d.ts +49 -49
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +28 -28
- package/dist/index.d.ts +28 -28
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/clients/createPublicClient.ts +3 -3
- package/src/clients/createWalletClient.ts +3 -3
- package/src/clients/decorators/arkivPublic.ts +12 -12
- package/src/clients/decorators/arkivWallet.ts +10 -10
package/README.md
CHANGED
|
@@ -94,11 +94,11 @@ You can now use Arkiv's public client to query data. Paste the following in `rea
|
|
|
94
94
|
|
|
95
95
|
```typescript
|
|
96
96
|
import { createPublicClient, http } from "@arkiv-network/sdk"
|
|
97
|
-
import {
|
|
97
|
+
import { braga } from "@arkiv-network/sdk/chains"
|
|
98
98
|
import { eq } from "@arkiv-network/sdk/query"
|
|
99
99
|
|
|
100
100
|
const publicClient = createPublicClient({
|
|
101
|
-
chain:
|
|
101
|
+
chain: braga, // "braga" is Arkiv's testnet
|
|
102
102
|
transport: http(),
|
|
103
103
|
});
|
|
104
104
|
|
|
@@ -172,17 +172,17 @@ Create a file named `write_example.ts` with the following content:
|
|
|
172
172
|
```typescript
|
|
173
173
|
import { createPublicClient, createWalletClient, http } from "@arkiv-network/sdk"
|
|
174
174
|
import { privateKeyToAccount } from "@arkiv-network/sdk/accounts"
|
|
175
|
-
import {
|
|
175
|
+
import { braga } from "@arkiv-network/sdk/chains"
|
|
176
176
|
import { ExpirationTime, jsonToPayload } from "@arkiv-network/sdk/utils"
|
|
177
177
|
|
|
178
178
|
// Create a public client
|
|
179
179
|
const publicClient = createPublicClient({
|
|
180
|
-
chain:
|
|
180
|
+
chain: braga, // braga is the Arkiv testnet
|
|
181
181
|
transport: http(),
|
|
182
182
|
})
|
|
183
183
|
// Create a wallet client with an account
|
|
184
184
|
const client = createWalletClient({
|
|
185
|
-
chain:
|
|
185
|
+
chain: braga,
|
|
186
186
|
transport: http(),
|
|
187
187
|
account: privateKeyToAccount('0x...'), // Replace with your private key
|
|
188
188
|
});
|
|
@@ -231,8 +231,8 @@ Now you can run it in the same way as in the previous example:
|
|
|
231
231
|
**Note:**
|
|
232
232
|
You must provide your own private key with a minimum balance on the Arkiv L3 network.
|
|
233
233
|
You can generate a private key using any tool, for example: https://vanity-eth.tk/
|
|
234
|
-
Once you have a key, you can paste it into the example above and fund its address using the Arkiv
|
|
235
|
-
https://
|
|
234
|
+
Once you have a key, you can paste it into the example above and fund its address using the Arkiv Braga testnet faucet at:
|
|
235
|
+
https://braga.hoodi.arkiv.network/faucet/
|
|
236
236
|
|
|
237
237
|
For quick testing, you may use this example key:
|
|
238
238
|
```
|
package/dist/chains/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as viem8 from "viem";
|
|
2
2
|
|
|
3
3
|
//#region src/chains/braga.d.ts
|
|
4
4
|
declare const braga: {
|
|
@@ -11,13 +11,13 @@ declare const braga: {
|
|
|
11
11
|
};
|
|
12
12
|
blockTime?: number | undefined | undefined;
|
|
13
13
|
contracts?: {
|
|
14
|
-
[x: string]:
|
|
15
|
-
[sourceId: number]:
|
|
14
|
+
[x: string]: viem8.ChainContract | {
|
|
15
|
+
[sourceId: number]: viem8.ChainContract | undefined;
|
|
16
16
|
} | undefined;
|
|
17
|
-
ensRegistry?:
|
|
18
|
-
ensUniversalResolver?:
|
|
19
|
-
multicall3?:
|
|
20
|
-
erc6492Verifier?:
|
|
17
|
+
ensRegistry?: viem8.ChainContract | undefined;
|
|
18
|
+
ensUniversalResolver?: viem8.ChainContract | undefined;
|
|
19
|
+
multicall3?: viem8.ChainContract | undefined;
|
|
20
|
+
erc6492Verifier?: viem8.ChainContract | undefined;
|
|
21
21
|
} | undefined;
|
|
22
22
|
ensTlds?: readonly string[] | undefined;
|
|
23
23
|
id: 60138453102;
|
|
@@ -37,9 +37,9 @@ declare const braga: {
|
|
|
37
37
|
sourceId?: number | undefined | undefined;
|
|
38
38
|
testnet: true;
|
|
39
39
|
custom?: Record<string, unknown> | undefined;
|
|
40
|
-
fees?:
|
|
40
|
+
fees?: viem8.ChainFees<undefined> | undefined;
|
|
41
41
|
formatters?: undefined;
|
|
42
|
-
serializers?:
|
|
42
|
+
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
43
43
|
readonly network: "braga";
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
@@ -54,13 +54,13 @@ declare const kaolin: {
|
|
|
54
54
|
};
|
|
55
55
|
blockTime?: number | undefined | undefined;
|
|
56
56
|
contracts?: {
|
|
57
|
-
[x: string]:
|
|
58
|
-
[sourceId: number]:
|
|
57
|
+
[x: string]: viem8.ChainContract | {
|
|
58
|
+
[sourceId: number]: viem8.ChainContract | undefined;
|
|
59
59
|
} | undefined;
|
|
60
|
-
ensRegistry?:
|
|
61
|
-
ensUniversalResolver?:
|
|
62
|
-
multicall3?:
|
|
63
|
-
erc6492Verifier?:
|
|
60
|
+
ensRegistry?: viem8.ChainContract | undefined;
|
|
61
|
+
ensUniversalResolver?: viem8.ChainContract | undefined;
|
|
62
|
+
multicall3?: viem8.ChainContract | undefined;
|
|
63
|
+
erc6492Verifier?: viem8.ChainContract | undefined;
|
|
64
64
|
} | undefined;
|
|
65
65
|
ensTlds?: readonly string[] | undefined;
|
|
66
66
|
id: 60138453025;
|
|
@@ -80,9 +80,9 @@ declare const kaolin: {
|
|
|
80
80
|
sourceId?: number | undefined | undefined;
|
|
81
81
|
testnet: true;
|
|
82
82
|
custom?: Record<string, unknown> | undefined;
|
|
83
|
-
fees?:
|
|
83
|
+
fees?: viem8.ChainFees<undefined> | undefined;
|
|
84
84
|
formatters?: undefined;
|
|
85
|
-
serializers?:
|
|
85
|
+
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
86
86
|
readonly network: "kaolin";
|
|
87
87
|
};
|
|
88
88
|
//#endregion
|
|
@@ -102,13 +102,13 @@ declare const localhost: {
|
|
|
102
102
|
} | undefined | undefined;
|
|
103
103
|
blockTime?: number | undefined | undefined;
|
|
104
104
|
contracts?: {
|
|
105
|
-
[x: string]:
|
|
106
|
-
[sourceId: number]:
|
|
105
|
+
[x: string]: viem8.ChainContract | {
|
|
106
|
+
[sourceId: number]: viem8.ChainContract | undefined;
|
|
107
107
|
} | undefined;
|
|
108
|
-
ensRegistry?:
|
|
109
|
-
ensUniversalResolver?:
|
|
110
|
-
multicall3?:
|
|
111
|
-
erc6492Verifier?:
|
|
108
|
+
ensRegistry?: viem8.ChainContract | undefined;
|
|
109
|
+
ensUniversalResolver?: viem8.ChainContract | undefined;
|
|
110
|
+
multicall3?: viem8.ChainContract | undefined;
|
|
111
|
+
erc6492Verifier?: viem8.ChainContract | undefined;
|
|
112
112
|
} | undefined;
|
|
113
113
|
ensTlds?: readonly string[] | undefined;
|
|
114
114
|
id: 1337;
|
|
@@ -127,9 +127,9 @@ declare const localhost: {
|
|
|
127
127
|
sourceId?: number | undefined | undefined;
|
|
128
128
|
testnet?: boolean | undefined | undefined;
|
|
129
129
|
custom?: Record<string, unknown> | undefined;
|
|
130
|
-
fees?:
|
|
130
|
+
fees?: viem8.ChainFees<undefined> | undefined;
|
|
131
131
|
formatters?: undefined;
|
|
132
|
-
serializers?:
|
|
132
|
+
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
133
133
|
};
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/chains/marketplace.d.ts
|
|
@@ -143,13 +143,13 @@ declare const marketplace: {
|
|
|
143
143
|
};
|
|
144
144
|
blockTime?: number | undefined | undefined;
|
|
145
145
|
contracts?: {
|
|
146
|
-
[x: string]:
|
|
147
|
-
[sourceId: number]:
|
|
146
|
+
[x: string]: viem8.ChainContract | {
|
|
147
|
+
[sourceId: number]: viem8.ChainContract | undefined;
|
|
148
148
|
} | undefined;
|
|
149
|
-
ensRegistry?:
|
|
150
|
-
ensUniversalResolver?:
|
|
151
|
-
multicall3?:
|
|
152
|
-
erc6492Verifier?:
|
|
149
|
+
ensRegistry?: viem8.ChainContract | undefined;
|
|
150
|
+
ensUniversalResolver?: viem8.ChainContract | undefined;
|
|
151
|
+
multicall3?: viem8.ChainContract | undefined;
|
|
152
|
+
erc6492Verifier?: viem8.ChainContract | undefined;
|
|
153
153
|
} | undefined;
|
|
154
154
|
ensTlds?: readonly string[] | undefined;
|
|
155
155
|
id: 60138453027;
|
|
@@ -169,9 +169,9 @@ declare const marketplace: {
|
|
|
169
169
|
sourceId?: number | undefined | undefined;
|
|
170
170
|
testnet: true;
|
|
171
171
|
custom?: Record<string, unknown> | undefined;
|
|
172
|
-
fees?:
|
|
172
|
+
fees?: viem8.ChainFees<undefined> | undefined;
|
|
173
173
|
formatters?: undefined;
|
|
174
|
-
serializers?:
|
|
174
|
+
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
175
175
|
readonly network: "marketplace";
|
|
176
176
|
};
|
|
177
177
|
//#endregion
|
|
@@ -186,13 +186,13 @@ declare const mendoza: {
|
|
|
186
186
|
};
|
|
187
187
|
blockTime?: number | undefined | undefined;
|
|
188
188
|
contracts?: {
|
|
189
|
-
[x: string]:
|
|
190
|
-
[sourceId: number]:
|
|
189
|
+
[x: string]: viem8.ChainContract | {
|
|
190
|
+
[sourceId: number]: viem8.ChainContract | undefined;
|
|
191
191
|
} | undefined;
|
|
192
|
-
ensRegistry?:
|
|
193
|
-
ensUniversalResolver?:
|
|
194
|
-
multicall3?:
|
|
195
|
-
erc6492Verifier?:
|
|
192
|
+
ensRegistry?: viem8.ChainContract | undefined;
|
|
193
|
+
ensUniversalResolver?: viem8.ChainContract | undefined;
|
|
194
|
+
multicall3?: viem8.ChainContract | undefined;
|
|
195
|
+
erc6492Verifier?: viem8.ChainContract | undefined;
|
|
196
196
|
} | undefined;
|
|
197
197
|
ensTlds?: readonly string[] | undefined;
|
|
198
198
|
id: 60138453056;
|
|
@@ -212,9 +212,9 @@ declare const mendoza: {
|
|
|
212
212
|
sourceId?: number | undefined | undefined;
|
|
213
213
|
testnet: true;
|
|
214
214
|
custom?: Record<string, unknown> | undefined;
|
|
215
|
-
fees?:
|
|
215
|
+
fees?: viem8.ChainFees<undefined> | undefined;
|
|
216
216
|
formatters?: undefined;
|
|
217
|
-
serializers?:
|
|
217
|
+
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
218
218
|
readonly network: "mendoza";
|
|
219
219
|
};
|
|
220
220
|
//#endregion
|
|
@@ -229,13 +229,13 @@ declare const rosario: {
|
|
|
229
229
|
};
|
|
230
230
|
blockTime?: number | undefined | undefined;
|
|
231
231
|
contracts?: {
|
|
232
|
-
[x: string]:
|
|
233
|
-
[sourceId: number]:
|
|
232
|
+
[x: string]: viem8.ChainContract | {
|
|
233
|
+
[sourceId: number]: viem8.ChainContract | undefined;
|
|
234
234
|
} | undefined;
|
|
235
|
-
ensRegistry?:
|
|
236
|
-
ensUniversalResolver?:
|
|
237
|
-
multicall3?:
|
|
238
|
-
erc6492Verifier?:
|
|
235
|
+
ensRegistry?: viem8.ChainContract | undefined;
|
|
236
|
+
ensUniversalResolver?: viem8.ChainContract | undefined;
|
|
237
|
+
multicall3?: viem8.ChainContract | undefined;
|
|
238
|
+
erc6492Verifier?: viem8.ChainContract | undefined;
|
|
239
239
|
} | undefined;
|
|
240
240
|
ensTlds?: readonly string[] | undefined;
|
|
241
241
|
id: 60138453057;
|
|
@@ -255,9 +255,9 @@ declare const rosario: {
|
|
|
255
255
|
sourceId?: number | undefined | undefined;
|
|
256
256
|
testnet: true;
|
|
257
257
|
custom?: Record<string, unknown> | undefined;
|
|
258
|
-
fees?:
|
|
258
|
+
fees?: viem8.ChainFees<undefined> | undefined;
|
|
259
259
|
formatters?: undefined;
|
|
260
|
-
serializers?:
|
|
260
|
+
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
261
261
|
readonly network: "rosario";
|
|
262
262
|
};
|
|
263
263
|
//#endregion
|
package/dist/chains/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as viem0 from "viem";
|
|
2
2
|
|
|
3
3
|
//#region src/chains/braga.d.ts
|
|
4
4
|
declare const braga: {
|
|
@@ -11,13 +11,13 @@ declare const braga: {
|
|
|
11
11
|
};
|
|
12
12
|
blockTime?: number | undefined | undefined;
|
|
13
13
|
contracts?: {
|
|
14
|
-
[x: string]:
|
|
15
|
-
[sourceId: number]:
|
|
14
|
+
[x: string]: viem0.ChainContract | {
|
|
15
|
+
[sourceId: number]: viem0.ChainContract | undefined;
|
|
16
16
|
} | undefined;
|
|
17
|
-
ensRegistry?:
|
|
18
|
-
ensUniversalResolver?:
|
|
19
|
-
multicall3?:
|
|
20
|
-
erc6492Verifier?:
|
|
17
|
+
ensRegistry?: viem0.ChainContract | undefined;
|
|
18
|
+
ensUniversalResolver?: viem0.ChainContract | undefined;
|
|
19
|
+
multicall3?: viem0.ChainContract | undefined;
|
|
20
|
+
erc6492Verifier?: viem0.ChainContract | undefined;
|
|
21
21
|
} | undefined;
|
|
22
22
|
ensTlds?: readonly string[] | undefined;
|
|
23
23
|
id: 60138453102;
|
|
@@ -37,9 +37,9 @@ declare const braga: {
|
|
|
37
37
|
sourceId?: number | undefined | undefined;
|
|
38
38
|
testnet: true;
|
|
39
39
|
custom?: Record<string, unknown> | undefined;
|
|
40
|
-
fees?:
|
|
40
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
41
41
|
formatters?: undefined;
|
|
42
|
-
serializers?:
|
|
42
|
+
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
43
43
|
readonly network: "braga";
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
@@ -54,13 +54,13 @@ declare const kaolin: {
|
|
|
54
54
|
};
|
|
55
55
|
blockTime?: number | undefined | undefined;
|
|
56
56
|
contracts?: {
|
|
57
|
-
[x: string]:
|
|
58
|
-
[sourceId: number]:
|
|
57
|
+
[x: string]: viem0.ChainContract | {
|
|
58
|
+
[sourceId: number]: viem0.ChainContract | undefined;
|
|
59
59
|
} | undefined;
|
|
60
|
-
ensRegistry?:
|
|
61
|
-
ensUniversalResolver?:
|
|
62
|
-
multicall3?:
|
|
63
|
-
erc6492Verifier?:
|
|
60
|
+
ensRegistry?: viem0.ChainContract | undefined;
|
|
61
|
+
ensUniversalResolver?: viem0.ChainContract | undefined;
|
|
62
|
+
multicall3?: viem0.ChainContract | undefined;
|
|
63
|
+
erc6492Verifier?: viem0.ChainContract | undefined;
|
|
64
64
|
} | undefined;
|
|
65
65
|
ensTlds?: readonly string[] | undefined;
|
|
66
66
|
id: 60138453025;
|
|
@@ -80,9 +80,9 @@ declare const kaolin: {
|
|
|
80
80
|
sourceId?: number | undefined | undefined;
|
|
81
81
|
testnet: true;
|
|
82
82
|
custom?: Record<string, unknown> | undefined;
|
|
83
|
-
fees?:
|
|
83
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
84
84
|
formatters?: undefined;
|
|
85
|
-
serializers?:
|
|
85
|
+
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
86
86
|
readonly network: "kaolin";
|
|
87
87
|
};
|
|
88
88
|
//#endregion
|
|
@@ -102,13 +102,13 @@ declare const localhost: {
|
|
|
102
102
|
} | undefined | undefined;
|
|
103
103
|
blockTime?: number | undefined | undefined;
|
|
104
104
|
contracts?: {
|
|
105
|
-
[x: string]:
|
|
106
|
-
[sourceId: number]:
|
|
105
|
+
[x: string]: viem0.ChainContract | {
|
|
106
|
+
[sourceId: number]: viem0.ChainContract | undefined;
|
|
107
107
|
} | undefined;
|
|
108
|
-
ensRegistry?:
|
|
109
|
-
ensUniversalResolver?:
|
|
110
|
-
multicall3?:
|
|
111
|
-
erc6492Verifier?:
|
|
108
|
+
ensRegistry?: viem0.ChainContract | undefined;
|
|
109
|
+
ensUniversalResolver?: viem0.ChainContract | undefined;
|
|
110
|
+
multicall3?: viem0.ChainContract | undefined;
|
|
111
|
+
erc6492Verifier?: viem0.ChainContract | undefined;
|
|
112
112
|
} | undefined;
|
|
113
113
|
ensTlds?: readonly string[] | undefined;
|
|
114
114
|
id: 1337;
|
|
@@ -127,9 +127,9 @@ declare const localhost: {
|
|
|
127
127
|
sourceId?: number | undefined | undefined;
|
|
128
128
|
testnet?: boolean | undefined | undefined;
|
|
129
129
|
custom?: Record<string, unknown> | undefined;
|
|
130
|
-
fees?:
|
|
130
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
131
131
|
formatters?: undefined;
|
|
132
|
-
serializers?:
|
|
132
|
+
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
133
133
|
};
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/chains/marketplace.d.ts
|
|
@@ -143,13 +143,13 @@ declare const marketplace: {
|
|
|
143
143
|
};
|
|
144
144
|
blockTime?: number | undefined | undefined;
|
|
145
145
|
contracts?: {
|
|
146
|
-
[x: string]:
|
|
147
|
-
[sourceId: number]:
|
|
146
|
+
[x: string]: viem0.ChainContract | {
|
|
147
|
+
[sourceId: number]: viem0.ChainContract | undefined;
|
|
148
148
|
} | undefined;
|
|
149
|
-
ensRegistry?:
|
|
150
|
-
ensUniversalResolver?:
|
|
151
|
-
multicall3?:
|
|
152
|
-
erc6492Verifier?:
|
|
149
|
+
ensRegistry?: viem0.ChainContract | undefined;
|
|
150
|
+
ensUniversalResolver?: viem0.ChainContract | undefined;
|
|
151
|
+
multicall3?: viem0.ChainContract | undefined;
|
|
152
|
+
erc6492Verifier?: viem0.ChainContract | undefined;
|
|
153
153
|
} | undefined;
|
|
154
154
|
ensTlds?: readonly string[] | undefined;
|
|
155
155
|
id: 60138453027;
|
|
@@ -169,9 +169,9 @@ declare const marketplace: {
|
|
|
169
169
|
sourceId?: number | undefined | undefined;
|
|
170
170
|
testnet: true;
|
|
171
171
|
custom?: Record<string, unknown> | undefined;
|
|
172
|
-
fees?:
|
|
172
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
173
173
|
formatters?: undefined;
|
|
174
|
-
serializers?:
|
|
174
|
+
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
175
175
|
readonly network: "marketplace";
|
|
176
176
|
};
|
|
177
177
|
//#endregion
|
|
@@ -186,13 +186,13 @@ declare const mendoza: {
|
|
|
186
186
|
};
|
|
187
187
|
blockTime?: number | undefined | undefined;
|
|
188
188
|
contracts?: {
|
|
189
|
-
[x: string]:
|
|
190
|
-
[sourceId: number]:
|
|
189
|
+
[x: string]: viem0.ChainContract | {
|
|
190
|
+
[sourceId: number]: viem0.ChainContract | undefined;
|
|
191
191
|
} | undefined;
|
|
192
|
-
ensRegistry?:
|
|
193
|
-
ensUniversalResolver?:
|
|
194
|
-
multicall3?:
|
|
195
|
-
erc6492Verifier?:
|
|
192
|
+
ensRegistry?: viem0.ChainContract | undefined;
|
|
193
|
+
ensUniversalResolver?: viem0.ChainContract | undefined;
|
|
194
|
+
multicall3?: viem0.ChainContract | undefined;
|
|
195
|
+
erc6492Verifier?: viem0.ChainContract | undefined;
|
|
196
196
|
} | undefined;
|
|
197
197
|
ensTlds?: readonly string[] | undefined;
|
|
198
198
|
id: 60138453056;
|
|
@@ -212,9 +212,9 @@ declare const mendoza: {
|
|
|
212
212
|
sourceId?: number | undefined | undefined;
|
|
213
213
|
testnet: true;
|
|
214
214
|
custom?: Record<string, unknown> | undefined;
|
|
215
|
-
fees?:
|
|
215
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
216
216
|
formatters?: undefined;
|
|
217
|
-
serializers?:
|
|
217
|
+
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
218
218
|
readonly network: "mendoza";
|
|
219
219
|
};
|
|
220
220
|
//#endregion
|
|
@@ -229,13 +229,13 @@ declare const rosario: {
|
|
|
229
229
|
};
|
|
230
230
|
blockTime?: number | undefined | undefined;
|
|
231
231
|
contracts?: {
|
|
232
|
-
[x: string]:
|
|
233
|
-
[sourceId: number]:
|
|
232
|
+
[x: string]: viem0.ChainContract | {
|
|
233
|
+
[sourceId: number]: viem0.ChainContract | undefined;
|
|
234
234
|
} | undefined;
|
|
235
|
-
ensRegistry?:
|
|
236
|
-
ensUniversalResolver?:
|
|
237
|
-
multicall3?:
|
|
238
|
-
erc6492Verifier?:
|
|
235
|
+
ensRegistry?: viem0.ChainContract | undefined;
|
|
236
|
+
ensUniversalResolver?: viem0.ChainContract | undefined;
|
|
237
|
+
multicall3?: viem0.ChainContract | undefined;
|
|
238
|
+
erc6492Verifier?: viem0.ChainContract | undefined;
|
|
239
239
|
} | undefined;
|
|
240
240
|
ensTlds?: readonly string[] | undefined;
|
|
241
241
|
id: 60138453057;
|
|
@@ -255,9 +255,9 @@ declare const rosario: {
|
|
|
255
255
|
sourceId?: number | undefined | undefined;
|
|
256
256
|
testnet: true;
|
|
257
257
|
custom?: Record<string, unknown> | undefined;
|
|
258
|
-
fees?:
|
|
258
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
259
259
|
formatters?: undefined;
|
|
260
|
-
serializers?:
|
|
260
|
+
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
261
261
|
readonly network: "rosario";
|
|
262
262
|
};
|
|
263
263
|
//#endregion
|
package/dist/index.cjs
CHANGED
|
@@ -207,17 +207,17 @@ function publicArkivActions(client) {
|
|
|
207
207
|
*
|
|
208
208
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
209
209
|
*
|
|
210
|
-
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [
|
|
210
|
+
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
|
|
211
211
|
*
|
|
212
212
|
* @param parameters - Configuration object for the public client (chain, transport, etc.)
|
|
213
213
|
* @returns A Arkiv Public Client. {@link PublicArkivClient}
|
|
214
214
|
*
|
|
215
215
|
* @example
|
|
216
216
|
* import { createPublicClient, http } from 'arkiv'
|
|
217
|
-
* import {
|
|
217
|
+
* import { braga } from 'arkiv/chains'
|
|
218
218
|
*
|
|
219
219
|
* const client = createPublicClient({
|
|
220
|
-
* chain:
|
|
220
|
+
* chain: braga,
|
|
221
221
|
* transport: http(),
|
|
222
222
|
* })
|
|
223
223
|
*/
|
|
@@ -494,17 +494,17 @@ function walletArkivActions(client) {
|
|
|
494
494
|
*
|
|
495
495
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
496
496
|
*
|
|
497
|
-
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [
|
|
497
|
+
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
|
|
498
498
|
*
|
|
499
499
|
* @param parameters - Configuration object for the wallet client (chain, transport, account, etc.)
|
|
500
500
|
* @returns A Arkiv Wallet Client. {@link WalletArkivClient}
|
|
501
501
|
*
|
|
502
502
|
* @example
|
|
503
503
|
* import { createPublicClient, http } from 'arkiv'
|
|
504
|
-
* import {
|
|
504
|
+
* import { braga } from 'arkiv/chains'
|
|
505
505
|
*
|
|
506
506
|
* const client = createPublicClient({
|
|
507
|
-
* chain:
|
|
507
|
+
* chain: braga,
|
|
508
508
|
* transport: http(),
|
|
509
509
|
* })
|
|
510
510
|
*/
|
package/dist/index.d.cts
CHANGED
|
@@ -16,10 +16,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* import { createPublicClient, http } from 'arkiv'
|
|
19
|
-
* import {
|
|
19
|
+
* import { braga } from 'arkiv/chains'
|
|
20
20
|
*
|
|
21
21
|
* const client = createPublicClient({
|
|
22
|
-
* chain:
|
|
22
|
+
* chain: braga,
|
|
23
23
|
* transport: http(),
|
|
24
24
|
* })
|
|
25
25
|
* const entity = await client.getEntity("0x123")
|
|
@@ -39,10 +39,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* import { createPublicClient, http } from 'arkiv'
|
|
42
|
-
* import {
|
|
42
|
+
* import { braga } from 'arkiv/chains'
|
|
43
43
|
*
|
|
44
44
|
* const client = createPublicClient({
|
|
45
|
-
* chain:
|
|
45
|
+
* chain: braga,
|
|
46
46
|
* transport: http(),
|
|
47
47
|
* })
|
|
48
48
|
* const query = client.buildQuery()
|
|
@@ -59,10 +59,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* import { createPublicClient, http } from 'arkiv'
|
|
62
|
-
* import {
|
|
62
|
+
* import { braga } from 'arkiv/chains'
|
|
63
63
|
*
|
|
64
64
|
* const client = createPublicClient({
|
|
65
|
-
* chain:
|
|
65
|
+
* chain: braga,
|
|
66
66
|
* transport: http(),
|
|
67
67
|
* })
|
|
68
68
|
* const queryResult = client.query('key = value && $owner = 0x123')
|
|
@@ -87,10 +87,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
87
87
|
*
|
|
88
88
|
* @example
|
|
89
89
|
* import { createPublicClient, http } from 'arkiv'
|
|
90
|
-
* import {
|
|
90
|
+
* import { braga } from 'arkiv/chains'
|
|
91
91
|
*
|
|
92
92
|
* const client = createPublicClient({
|
|
93
|
-
* chain:
|
|
93
|
+
* chain: braga,
|
|
94
94
|
* transport: http(),
|
|
95
95
|
* })
|
|
96
96
|
* const entityCount = await client.getEntityCount()
|
|
@@ -103,10 +103,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
103
103
|
*
|
|
104
104
|
* @example
|
|
105
105
|
* import { createPublicClient, http } from 'arkiv'
|
|
106
|
-
* import {
|
|
106
|
+
* import { braga } from 'arkiv/chains'
|
|
107
107
|
*
|
|
108
108
|
* const client = createPublicClient({
|
|
109
|
-
* chain:
|
|
109
|
+
* chain: braga,
|
|
110
110
|
* transport: http(),
|
|
111
111
|
* })
|
|
112
112
|
* const blockTiming = await client.getBlockTiming()
|
|
@@ -130,10 +130,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
132
|
* import { createPublicClient, http } from 'arkiv'
|
|
133
|
-
* import {
|
|
133
|
+
* import { braga } from 'arkiv/chains'
|
|
134
134
|
*
|
|
135
135
|
* const client = createPublicClient({
|
|
136
|
-
* chain:
|
|
136
|
+
* chain: braga,
|
|
137
137
|
* transport: http(),
|
|
138
138
|
* })
|
|
139
139
|
* const unsubscribe = await client.subscribeEntityEvents({
|
|
@@ -164,17 +164,17 @@ type PublicArkivClient<transport extends Transport = Transport, chain extends Ch
|
|
|
164
164
|
*
|
|
165
165
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
166
166
|
*
|
|
167
|
-
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [
|
|
167
|
+
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
|
|
168
168
|
*
|
|
169
169
|
* @param parameters - Configuration object for the public client (chain, transport, etc.)
|
|
170
170
|
* @returns A Arkiv Public Client. {@link PublicArkivClient}
|
|
171
171
|
*
|
|
172
172
|
* @example
|
|
173
173
|
* import { createPublicClient, http } from 'arkiv'
|
|
174
|
-
* import {
|
|
174
|
+
* import { braga } from 'arkiv/chains'
|
|
175
175
|
*
|
|
176
176
|
* const client = createPublicClient({
|
|
177
|
-
* chain:
|
|
177
|
+
* chain: braga,
|
|
178
178
|
* transport: http(),
|
|
179
179
|
* })
|
|
180
180
|
*/
|
|
@@ -194,10 +194,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
194
194
|
*
|
|
195
195
|
* @example
|
|
196
196
|
* import { createPublicClient, http } from 'arkiv'
|
|
197
|
-
* import {
|
|
197
|
+
* import { braga } from 'arkiv/chains'
|
|
198
198
|
*
|
|
199
199
|
* const client = createPublicClient({
|
|
200
|
-
* chain:
|
|
200
|
+
* chain: braga,
|
|
201
201
|
* transport: http(),
|
|
202
202
|
* })
|
|
203
203
|
* const { entityKey, txHash } = await client.createEntity({
|
|
@@ -225,10 +225,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
225
225
|
*
|
|
226
226
|
* @example
|
|
227
227
|
* import { createWalletClient, http } from 'arkiv'
|
|
228
|
-
* import {
|
|
228
|
+
* import { braga } from 'arkiv/chains'
|
|
229
229
|
*
|
|
230
230
|
* const client = createWalletClient({
|
|
231
|
-
* chain:
|
|
231
|
+
* chain: braga,
|
|
232
232
|
* transport: http(),
|
|
233
233
|
* })
|
|
234
234
|
*/
|
|
@@ -245,10 +245,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
245
245
|
*
|
|
246
246
|
* @example
|
|
247
247
|
* import { createWalletClient, http } from 'arkiv'
|
|
248
|
-
* import {
|
|
248
|
+
* import { braga } from 'arkiv/chains'
|
|
249
249
|
*
|
|
250
250
|
* const client = createWalletClient({
|
|
251
|
-
* chain:
|
|
251
|
+
* chain: braga,
|
|
252
252
|
* transport: http(),
|
|
253
253
|
* })
|
|
254
254
|
* const { entityKey, txHash } = await client.deleteEntity({ entityKey: "0x123" })
|
|
@@ -272,10 +272,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
272
272
|
*
|
|
273
273
|
* @example
|
|
274
274
|
* import { createWalletClient, http } from 'arkiv'
|
|
275
|
-
* import {
|
|
275
|
+
* import { braga } from 'arkiv/chains'
|
|
276
276
|
*
|
|
277
277
|
* const client = createWalletClient({
|
|
278
|
-
* chain:
|
|
278
|
+
* chain: braga,
|
|
279
279
|
* transport: http(),
|
|
280
280
|
* })
|
|
281
281
|
* const { entityKey, txHash } = await client.extendEntity("0x123", {
|
|
@@ -312,10 +312,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
312
312
|
*
|
|
313
313
|
* @example
|
|
314
314
|
* import { createWalletClient, http } from 'arkiv'
|
|
315
|
-
* import {
|
|
315
|
+
* import { braga } from 'arkiv/chains'
|
|
316
316
|
*
|
|
317
317
|
* const client = createWalletClient({
|
|
318
|
-
* chain:
|
|
318
|
+
* chain: braga,
|
|
319
319
|
* transport: http(),
|
|
320
320
|
* })
|
|
321
321
|
* const { entityKey, txHash } = await client.mutateEntities({
|
|
@@ -355,17 +355,17 @@ type WalletArkivClient<transport extends Transport = Transport, chain extends Ch
|
|
|
355
355
|
*
|
|
356
356
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
357
357
|
*
|
|
358
|
-
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [
|
|
358
|
+
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
|
|
359
359
|
*
|
|
360
360
|
* @param parameters - Configuration object for the wallet client (chain, transport, account, etc.)
|
|
361
361
|
* @returns A Arkiv Wallet Client. {@link WalletArkivClient}
|
|
362
362
|
*
|
|
363
363
|
* @example
|
|
364
364
|
* import { createPublicClient, http } from 'arkiv'
|
|
365
|
-
* import {
|
|
365
|
+
* import { braga } from 'arkiv/chains'
|
|
366
366
|
*
|
|
367
367
|
* const client = createPublicClient({
|
|
368
|
-
* chain:
|
|
368
|
+
* chain: braga,
|
|
369
369
|
* transport: http(),
|
|
370
370
|
* })
|
|
371
371
|
*/
|