@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
|
@@ -41,10 +41,10 @@ export type PublicArkivActions<
|
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* import { createPublicClient, http } from 'arkiv'
|
|
44
|
-
* import {
|
|
44
|
+
* import { braga } from 'arkiv/chains'
|
|
45
45
|
*
|
|
46
46
|
* const client = createPublicClient({
|
|
47
|
-
* chain:
|
|
47
|
+
* chain: braga,
|
|
48
48
|
* transport: http(),
|
|
49
49
|
* })
|
|
50
50
|
* const entity = await client.getEntity("0x123")
|
|
@@ -65,10 +65,10 @@ export type PublicArkivActions<
|
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* import { createPublicClient, http } from 'arkiv'
|
|
68
|
-
* import {
|
|
68
|
+
* import { braga } from 'arkiv/chains'
|
|
69
69
|
*
|
|
70
70
|
* const client = createPublicClient({
|
|
71
|
-
* chain:
|
|
71
|
+
* chain: braga,
|
|
72
72
|
* transport: http(),
|
|
73
73
|
* })
|
|
74
74
|
* const query = client.buildQuery()
|
|
@@ -86,10 +86,10 @@ export type PublicArkivActions<
|
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* import { createPublicClient, http } from 'arkiv'
|
|
89
|
-
* import {
|
|
89
|
+
* import { braga } from 'arkiv/chains'
|
|
90
90
|
*
|
|
91
91
|
* const client = createPublicClient({
|
|
92
|
-
* chain:
|
|
92
|
+
* chain: braga,
|
|
93
93
|
* transport: http(),
|
|
94
94
|
* })
|
|
95
95
|
* const queryResult = client.query('key = value && $owner = 0x123')
|
|
@@ -115,10 +115,10 @@ export type PublicArkivActions<
|
|
|
115
115
|
*
|
|
116
116
|
* @example
|
|
117
117
|
* import { createPublicClient, http } from 'arkiv'
|
|
118
|
-
* import {
|
|
118
|
+
* import { braga } from 'arkiv/chains'
|
|
119
119
|
*
|
|
120
120
|
* const client = createPublicClient({
|
|
121
|
-
* chain:
|
|
121
|
+
* chain: braga,
|
|
122
122
|
* transport: http(),
|
|
123
123
|
* })
|
|
124
124
|
* const entityCount = await client.getEntityCount()
|
|
@@ -132,10 +132,10 @@ export type PublicArkivActions<
|
|
|
132
132
|
*
|
|
133
133
|
* @example
|
|
134
134
|
* import { createPublicClient, http } from 'arkiv'
|
|
135
|
-
* import {
|
|
135
|
+
* import { braga } from 'arkiv/chains'
|
|
136
136
|
*
|
|
137
137
|
* const client = createPublicClient({
|
|
138
|
-
* chain:
|
|
138
|
+
* chain: braga,
|
|
139
139
|
* transport: http(),
|
|
140
140
|
* })
|
|
141
141
|
* const blockTiming = await client.getBlockTiming()
|
|
@@ -160,10 +160,10 @@ export type PublicArkivActions<
|
|
|
160
160
|
*
|
|
161
161
|
* @example
|
|
162
162
|
* import { createPublicClient, http } from 'arkiv'
|
|
163
|
-
* import {
|
|
163
|
+
* import { braga } from 'arkiv/chains'
|
|
164
164
|
*
|
|
165
165
|
* const client = createPublicClient({
|
|
166
|
-
* chain:
|
|
166
|
+
* chain: braga,
|
|
167
167
|
* transport: http(),
|
|
168
168
|
* })
|
|
169
169
|
* const unsubscribe = await client.subscribeEntityEvents({
|
|
@@ -58,10 +58,10 @@ export type WalletArkivActions<
|
|
|
58
58
|
*
|
|
59
59
|
* @example
|
|
60
60
|
* import { createPublicClient, http } from 'arkiv'
|
|
61
|
-
* import {
|
|
61
|
+
* import { braga } from 'arkiv/chains'
|
|
62
62
|
*
|
|
63
63
|
* const client = createPublicClient({
|
|
64
|
-
* chain:
|
|
64
|
+
* chain: braga,
|
|
65
65
|
* transport: http(),
|
|
66
66
|
* })
|
|
67
67
|
* const { entityKey, txHash } = await client.createEntity({
|
|
@@ -93,10 +93,10 @@ export type WalletArkivActions<
|
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* import { createWalletClient, http } from 'arkiv'
|
|
96
|
-
* import {
|
|
96
|
+
* import { braga } from 'arkiv/chains'
|
|
97
97
|
*
|
|
98
98
|
* const client = createWalletClient({
|
|
99
|
-
* chain:
|
|
99
|
+
* chain: braga,
|
|
100
100
|
* transport: http(),
|
|
101
101
|
* })
|
|
102
102
|
*/
|
|
@@ -117,10 +117,10 @@ export type WalletArkivActions<
|
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
119
|
* import { createWalletClient, http } from 'arkiv'
|
|
120
|
-
* import {
|
|
120
|
+
* import { braga } from 'arkiv/chains'
|
|
121
121
|
*
|
|
122
122
|
* const client = createWalletClient({
|
|
123
|
-
* chain:
|
|
123
|
+
* chain: braga,
|
|
124
124
|
* transport: http(),
|
|
125
125
|
* })
|
|
126
126
|
* const { entityKey, txHash } = await client.deleteEntity({ entityKey: "0x123" })
|
|
@@ -148,10 +148,10 @@ export type WalletArkivActions<
|
|
|
148
148
|
*
|
|
149
149
|
* @example
|
|
150
150
|
* import { createWalletClient, http } from 'arkiv'
|
|
151
|
-
* import {
|
|
151
|
+
* import { braga } from 'arkiv/chains'
|
|
152
152
|
*
|
|
153
153
|
* const client = createWalletClient({
|
|
154
|
-
* chain:
|
|
154
|
+
* chain: braga,
|
|
155
155
|
* transport: http(),
|
|
156
156
|
* })
|
|
157
157
|
* const { entityKey, txHash } = await client.extendEntity("0x123", {
|
|
@@ -196,10 +196,10 @@ export type WalletArkivActions<
|
|
|
196
196
|
*
|
|
197
197
|
* @example
|
|
198
198
|
* import { createWalletClient, http } from 'arkiv'
|
|
199
|
-
* import {
|
|
199
|
+
* import { braga } from 'arkiv/chains'
|
|
200
200
|
*
|
|
201
201
|
* const client = createWalletClient({
|
|
202
|
-
* chain:
|
|
202
|
+
* chain: braga,
|
|
203
203
|
* transport: http(),
|
|
204
204
|
* })
|
|
205
205
|
* const { entityKey, txHash } = await client.mutateEntities({
|