@arkiv-network/sdk 0.6.5-dev.11 → 0.6.5-dev.13
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.cjs +2 -5
- package/dist/chains/index.d.cts +29 -155
- package/dist/chains/index.d.cts.map +1 -1
- package/dist/chains/index.d.ts +4 -130
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +2 -2
- package/dist/{chains-DycNIf_C.cjs → chains-BifaY04V.cjs} +4 -91
- package/dist/chains-CrtkVbBh.js +86 -0
- package/dist/chains-CrtkVbBh.js.map +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +28 -28
- package/dist/index.d.ts +28 -28
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/chains/index.ts +0 -3
- package/src/chains/kaolin.ts +3 -0
- 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/src/utils/chains.test.ts +5 -22
- package/dist/chains-DX8yNhGT.js +0 -155
- package/dist/chains-DX8yNhGT.js.map +0 -1
- package/src/chains/marketplace.ts +0 -26
- package/src/chains/mendoza.ts +0 -26
- package/src/chains/rosario.ts +0 -26
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chains-CrtkVbBh.js","names":[],"sources":["../src/chains/braga.ts","../src/chains/kaolin.ts","../src/chains/localhost.ts","../src/chains/index.ts"],"sourcesContent":["import { defineChain } from \"viem\"\n\nexport const braga = defineChain({\n id: 60138453102,\n name: \"Braga\",\n network: \"braga\",\n nativeCurrency: {\n name: \"Golem\",\n symbol: \"GLM\",\n decimals: 18,\n },\n rpcUrls: {\n default: {\n http: [\"https://braga.hoodi.arkiv.network/rpc\"],\n webSocket: [\"wss://braga.hoodi.arkiv.network/rpc/ws\"],\n },\n },\n blockExplorers: {\n default: {\n name: \"Braga Arkiv Explorer\",\n url: \"https://explorer.braga.hoodi.arkiv.network\",\n apiUrl: \"https://explorer.braga.hoodi.arkiv.network/api\",\n },\n },\n testnet: true,\n})\n","import { defineChain } from \"viem\"\n\n/**\n * @deprecated The kaolin network is getting removed on may 15th 2026. Migration guide: https://docs.arkiv.network/networks/migrate-from-kaolin/\n */\nexport const kaolin = defineChain({\n id: 60138453025,\n name: \"Kaolin\",\n network: \"kaolin\",\n nativeCurrency: {\n name: \"Ethereum\",\n symbol: \"ETH\",\n decimals: 18,\n },\n rpcUrls: {\n default: {\n http: [\"https://kaolin.hoodi.arkiv.network/rpc\"],\n webSocket: [\"wss://kaolin.hoodi.arkiv.network/rpc/ws\"],\n },\n },\n blockExplorers: {\n default: {\n name: \"Kaolin Arkiv Explorer\",\n url: \"https://explorer.kaolin.hoodi.arkiv.network\",\n apiUrl: \"https://explorer.kaolin.hoodi.arkiv.network/api\",\n },\n },\n testnet: true,\n})\n","import { defineChain } from \"viem\"\n\nexport const localhost = defineChain({\n id: 1337,\n name: \"Localhost\",\n nativeCurrency: {\n decimals: 18,\n name: \"Ether\",\n symbol: \"ETH\",\n },\n rpcUrls: {\n default: { http: [\"http://127.0.0.1:8545\"] },\n },\n})\n","export { braga } from \"./braga\"\nexport { kaolin } from \"./kaolin\"\nexport { localhost } from \"./localhost\"\n"],"mappings":";;;;;;;;;;;;;;;AAEA,MAAa,QAAQ,YAAY;CAC/B,IAAI;CACJ,MAAM;CACN,SAAS;CACT,gBAAgB;EACd,MAAM;EACN,QAAQ;EACR,UAAU;EACX;CACD,SAAS,EACP,SAAS;EACP,MAAM,CAAC,wCAAwC;EAC/C,WAAW,CAAC,yCAAyC;EACtD,EACF;CACD,gBAAgB,EACd,SAAS;EACP,MAAM;EACN,KAAK;EACL,QAAQ;EACT,EACF;CACD,SAAS;CACV,CAAC;;;;;;;ACpBF,MAAa,SAAS,YAAY;CAChC,IAAI;CACJ,MAAM;CACN,SAAS;CACT,gBAAgB;EACd,MAAM;EACN,QAAQ;EACR,UAAU;EACX;CACD,SAAS,EACP,SAAS;EACP,MAAM,CAAC,yCAAyC;EAChD,WAAW,CAAC,0CAA0C;EACvD,EACF;CACD,gBAAgB,EACd,SAAS;EACP,MAAM;EACN,KAAK;EACL,QAAQ;EACT,EACF;CACD,SAAS;CACV,CAAC;;;;AC1BF,MAAa,YAAY,YAAY;CACnC,IAAI;CACJ,MAAM;CACN,gBAAgB;EACd,UAAU;EACV,MAAM;EACN,QAAQ;EACT;CACD,SAAS,EACP,SAAS,EAAE,MAAM,CAAC,wBAAwB,EAAE,EAC7C;CACF,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_chains = require('./chains-
|
|
1
|
+
const require_chains = require('./chains-BifaY04V.cjs');
|
|
2
2
|
const require_queryBuilder = require('./queryBuilder-DM-YO1Y7.cjs');
|
|
3
3
|
const require_payload = require('./payload-vwU3Rc6P.cjs');
|
|
4
4
|
require('./types-o3zWarRp.cjs');
|
|
@@ -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
|
*/
|
package/dist/index.d.ts
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
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as chains_exports } from "./chains-
|
|
1
|
+
import { t as chains_exports } from "./chains-CrtkVbBh.js";
|
|
2
2
|
import { a as entityFromRpcResult, c as NoEntityFoundError, l as NoMoreResultsError, o as EntityMutationError, s as NoCursorOrLimitError, t as QueryBuilder, u as getLogger } from "./queryBuilder-DonAg1aq.js";
|
|
3
3
|
import { i as BLOCK_TIME, n as stringToPayload, r as ARKIV_ADDRESS, t as jsonToPayload } from "./payload-DKBYYjeA.js";
|
|
4
4
|
import "./types-H-TSmRpm.js";
|
|
@@ -209,17 +209,17 @@ function publicArkivActions(client) {
|
|
|
209
209
|
*
|
|
210
210
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
211
211
|
*
|
|
212
|
-
* 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 [
|
|
212
|
+
* 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).
|
|
213
213
|
*
|
|
214
214
|
* @param parameters - Configuration object for the public client (chain, transport, etc.)
|
|
215
215
|
* @returns A Arkiv Public Client. {@link PublicArkivClient}
|
|
216
216
|
*
|
|
217
217
|
* @example
|
|
218
218
|
* import { createPublicClient, http } from 'arkiv'
|
|
219
|
-
* import {
|
|
219
|
+
* import { braga } from 'arkiv/chains'
|
|
220
220
|
*
|
|
221
221
|
* const client = createPublicClient({
|
|
222
|
-
* chain:
|
|
222
|
+
* chain: braga,
|
|
223
223
|
* transport: http(),
|
|
224
224
|
* })
|
|
225
225
|
*/
|
|
@@ -496,17 +496,17 @@ function walletArkivActions(client) {
|
|
|
496
496
|
*
|
|
497
497
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
498
498
|
*
|
|
499
|
-
* 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 [
|
|
499
|
+
* 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).
|
|
500
500
|
*
|
|
501
501
|
* @param parameters - Configuration object for the wallet client (chain, transport, account, etc.)
|
|
502
502
|
* @returns A Arkiv Wallet Client. {@link WalletArkivClient}
|
|
503
503
|
*
|
|
504
504
|
* @example
|
|
505
505
|
* import { createPublicClient, http } from 'arkiv'
|
|
506
|
-
* import {
|
|
506
|
+
* import { braga } from 'arkiv/chains'
|
|
507
507
|
*
|
|
508
508
|
* const client = createPublicClient({
|
|
509
|
-
* chain:
|
|
509
|
+
* chain: braga,
|
|
510
510
|
* transport: http(),
|
|
511
511
|
* })
|
|
512
512
|
*/
|