@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
package/dist/chains-DX8yNhGT.js
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { defineChain } from "viem";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __export = (all) => {
|
|
6
|
-
let target = {};
|
|
7
|
-
for (var name in all) __defProp(target, name, {
|
|
8
|
-
get: all[name],
|
|
9
|
-
enumerable: true
|
|
10
|
-
});
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/chains/braga.ts
|
|
16
|
-
const braga = defineChain({
|
|
17
|
-
id: 60138453102,
|
|
18
|
-
name: "Braga",
|
|
19
|
-
network: "braga",
|
|
20
|
-
nativeCurrency: {
|
|
21
|
-
name: "Golem",
|
|
22
|
-
symbol: "GLM",
|
|
23
|
-
decimals: 18
|
|
24
|
-
},
|
|
25
|
-
rpcUrls: { default: {
|
|
26
|
-
http: ["https://braga.hoodi.arkiv.network/rpc"],
|
|
27
|
-
webSocket: ["wss://braga.hoodi.arkiv.network/rpc/ws"]
|
|
28
|
-
} },
|
|
29
|
-
blockExplorers: { default: {
|
|
30
|
-
name: "Braga Arkiv Explorer",
|
|
31
|
-
url: "https://explorer.braga.hoodi.arkiv.network",
|
|
32
|
-
apiUrl: "https://explorer.braga.hoodi.arkiv.network/api"
|
|
33
|
-
} },
|
|
34
|
-
testnet: true
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/chains/kaolin.ts
|
|
39
|
-
const kaolin = defineChain({
|
|
40
|
-
id: 60138453025,
|
|
41
|
-
name: "Kaolin",
|
|
42
|
-
network: "kaolin",
|
|
43
|
-
nativeCurrency: {
|
|
44
|
-
name: "Ethereum",
|
|
45
|
-
symbol: "ETH",
|
|
46
|
-
decimals: 18
|
|
47
|
-
},
|
|
48
|
-
rpcUrls: { default: {
|
|
49
|
-
http: ["https://kaolin.hoodi.arkiv.network/rpc"],
|
|
50
|
-
webSocket: ["wss://kaolin.hoodi.arkiv.network/rpc/ws"]
|
|
51
|
-
} },
|
|
52
|
-
blockExplorers: { default: {
|
|
53
|
-
name: "Kaolin Arkiv Explorer",
|
|
54
|
-
url: "https://explorer.kaolin.hoodi.arkiv.network",
|
|
55
|
-
apiUrl: "https://explorer.kaolin.hoodi.arkiv.network/api"
|
|
56
|
-
} },
|
|
57
|
-
testnet: true
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/chains/localhost.ts
|
|
62
|
-
const localhost = defineChain({
|
|
63
|
-
id: 1337,
|
|
64
|
-
name: "Localhost",
|
|
65
|
-
nativeCurrency: {
|
|
66
|
-
decimals: 18,
|
|
67
|
-
name: "Ether",
|
|
68
|
-
symbol: "ETH"
|
|
69
|
-
},
|
|
70
|
-
rpcUrls: { default: { http: ["http://127.0.0.1:8545"] } }
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region src/chains/marketplace.ts
|
|
75
|
-
const marketplace = defineChain({
|
|
76
|
-
id: 60138453027,
|
|
77
|
-
name: "Marketplace",
|
|
78
|
-
network: "marketplace",
|
|
79
|
-
nativeCurrency: {
|
|
80
|
-
name: "Ethereum",
|
|
81
|
-
symbol: "ETH",
|
|
82
|
-
decimals: 18
|
|
83
|
-
},
|
|
84
|
-
rpcUrls: { default: {
|
|
85
|
-
http: ["https://marketplace.hoodi.arkiv.network/rpc"],
|
|
86
|
-
webSocket: ["wss://marketplace.hoodi.arkiv.network/rpc/ws"]
|
|
87
|
-
} },
|
|
88
|
-
blockExplorers: { default: {
|
|
89
|
-
name: "Marketplace Arkiv Explorer",
|
|
90
|
-
url: "https://explorer.marketplace.hoodi.arkiv.network",
|
|
91
|
-
apiUrl: "https://explorer.marketplace.hoodi.arkiv.network/api"
|
|
92
|
-
} },
|
|
93
|
-
testnet: true
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
//#endregion
|
|
97
|
-
//#region src/chains/mendoza.ts
|
|
98
|
-
const mendoza = defineChain({
|
|
99
|
-
id: 60138453056,
|
|
100
|
-
name: "Mendoza",
|
|
101
|
-
network: "mendoza",
|
|
102
|
-
nativeCurrency: {
|
|
103
|
-
name: "Ethereum",
|
|
104
|
-
symbol: "ETH",
|
|
105
|
-
decimals: 18
|
|
106
|
-
},
|
|
107
|
-
rpcUrls: { default: {
|
|
108
|
-
http: ["https://mendoza.hoodi.arkiv.network/rpc"],
|
|
109
|
-
webSocket: ["wss://mendoza.hoodi.arkiv.network/rpc/ws"]
|
|
110
|
-
} },
|
|
111
|
-
blockExplorers: { default: {
|
|
112
|
-
name: "Mendoza Arkiv Explorer",
|
|
113
|
-
url: "https://explorer.mendoza.hoodi.arkiv.network",
|
|
114
|
-
apiUrl: "https://explorer.mendoza.hoodi.arkiv.network/api"
|
|
115
|
-
} },
|
|
116
|
-
testnet: true
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region src/chains/rosario.ts
|
|
121
|
-
const rosario = defineChain({
|
|
122
|
-
id: 60138453057,
|
|
123
|
-
name: "Rosario",
|
|
124
|
-
network: "rosario",
|
|
125
|
-
nativeCurrency: {
|
|
126
|
-
name: "Ethereum",
|
|
127
|
-
symbol: "ETH",
|
|
128
|
-
decimals: 18
|
|
129
|
-
},
|
|
130
|
-
rpcUrls: { default: {
|
|
131
|
-
http: ["https://rosario.hoodi.arkiv.network/rpc"],
|
|
132
|
-
webSocket: ["wss://rosario.hoodi.arkiv.network/rpc/ws"]
|
|
133
|
-
} },
|
|
134
|
-
blockExplorers: { default: {
|
|
135
|
-
name: "Rosario Arkiv Explorer",
|
|
136
|
-
url: "https://explorer.rosario.hoodi.arkiv.network",
|
|
137
|
-
apiUrl: "https://explorer.rosario.hoodi.arkiv.network/api"
|
|
138
|
-
} },
|
|
139
|
-
testnet: true
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
//#endregion
|
|
143
|
-
//#region src/chains/index.ts
|
|
144
|
-
var chains_exports = /* @__PURE__ */ __export({
|
|
145
|
-
braga: () => braga,
|
|
146
|
-
kaolin: () => kaolin,
|
|
147
|
-
localhost: () => localhost,
|
|
148
|
-
marketplace: () => marketplace,
|
|
149
|
-
mendoza: () => mendoza,
|
|
150
|
-
rosario: () => rosario
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
//#endregion
|
|
154
|
-
export { localhost as a, marketplace as i, rosario as n, kaolin as o, mendoza as r, braga as s, chains_exports as t };
|
|
155
|
-
//# sourceMappingURL=chains-DX8yNhGT.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chains-DX8yNhGT.js","names":[],"sources":["../src/chains/braga.ts","../src/chains/kaolin.ts","../src/chains/localhost.ts","../src/chains/marketplace.ts","../src/chains/mendoza.ts","../src/chains/rosario.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\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","import { defineChain } from \"viem\"\n\nexport const marketplace = defineChain({\n id: 60138453027,\n name: \"Marketplace\",\n network: \"marketplace\",\n nativeCurrency: {\n name: \"Ethereum\",\n symbol: \"ETH\",\n decimals: 18,\n },\n rpcUrls: {\n default: {\n http: [\"https://marketplace.hoodi.arkiv.network/rpc\"],\n webSocket: [\"wss://marketplace.hoodi.arkiv.network/rpc/ws\"],\n },\n },\n blockExplorers: {\n default: {\n name: \"Marketplace Arkiv Explorer\",\n url: \"https://explorer.marketplace.hoodi.arkiv.network\",\n apiUrl: \"https://explorer.marketplace.hoodi.arkiv.network/api\",\n },\n },\n testnet: true,\n})\n","import { defineChain } from \"viem\"\n\nexport const mendoza = defineChain({\n id: 60138453056,\n name: \"Mendoza\",\n network: \"mendoza\",\n nativeCurrency: {\n name: \"Ethereum\",\n symbol: \"ETH\",\n decimals: 18,\n },\n rpcUrls: {\n default: {\n http: [\"https://mendoza.hoodi.arkiv.network/rpc\"],\n webSocket: [\"wss://mendoza.hoodi.arkiv.network/rpc/ws\"],\n },\n },\n blockExplorers: {\n default: {\n name: \"Mendoza Arkiv Explorer\",\n url: \"https://explorer.mendoza.hoodi.arkiv.network\",\n apiUrl: \"https://explorer.mendoza.hoodi.arkiv.network/api\",\n },\n },\n testnet: true,\n})\n","import { defineChain } from \"viem\"\n\nexport const rosario = defineChain({\n id: 60138453057,\n name: \"Rosario\",\n network: \"rosario\",\n nativeCurrency: {\n name: \"Ethereum\",\n symbol: \"ETH\",\n decimals: 18,\n },\n rpcUrls: {\n default: {\n http: [\"https://rosario.hoodi.arkiv.network/rpc\"],\n webSocket: [\"wss://rosario.hoodi.arkiv.network/rpc/ws\"],\n },\n },\n blockExplorers: {\n default: {\n name: \"Rosario Arkiv Explorer\",\n url: \"https://explorer.rosario.hoodi.arkiv.network\",\n apiUrl: \"https://explorer.rosario.hoodi.arkiv.network/api\",\n },\n },\n testnet: true,\n})\n","export { braga } from \"./braga\"\nexport { kaolin } from \"./kaolin\"\nexport { localhost } from \"./localhost\"\nexport { marketplace } from \"./marketplace\"\nexport { mendoza } from \"./mendoza\"\nexport { rosario } from \"./rosario\"\n"],"m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WAAW,CAAC,2CAA2C;EACxD,EACF;CACD,gBAAgB,EACd,SAAS;EACP,MAAM;EACN,KAAK;EACL,QAAQ;EACT,EACF;CACD,SAAS;CACV,CAAC;;;;ACvBF,MAAa,UAAU,YAAY;CACjC,IAAI;CACJ,MAAM;CACN,SAAS;CACT,gBAAgB;EACd,MAAM;EACN,QAAQ;EACR,UAAU;EACX;CACD,SAAS,EACP,SAAS;EACP,MAAM,CAAC,0CAA0C;EACjD,WAAW,CAAC,2CAA2C;EACxD,EACF;CACD,gBAAgB,EACd,SAAS;EACP,MAAM;EACN,KAAK;EACL,QAAQ;EACT,EACF;CACD,SAAS;CACV,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineChain } from "viem"
|
|
2
|
-
|
|
3
|
-
export const marketplace = defineChain({
|
|
4
|
-
id: 60138453027,
|
|
5
|
-
name: "Marketplace",
|
|
6
|
-
network: "marketplace",
|
|
7
|
-
nativeCurrency: {
|
|
8
|
-
name: "Ethereum",
|
|
9
|
-
symbol: "ETH",
|
|
10
|
-
decimals: 18,
|
|
11
|
-
},
|
|
12
|
-
rpcUrls: {
|
|
13
|
-
default: {
|
|
14
|
-
http: ["https://marketplace.hoodi.arkiv.network/rpc"],
|
|
15
|
-
webSocket: ["wss://marketplace.hoodi.arkiv.network/rpc/ws"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
blockExplorers: {
|
|
19
|
-
default: {
|
|
20
|
-
name: "Marketplace Arkiv Explorer",
|
|
21
|
-
url: "https://explorer.marketplace.hoodi.arkiv.network",
|
|
22
|
-
apiUrl: "https://explorer.marketplace.hoodi.arkiv.network/api",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
testnet: true,
|
|
26
|
-
})
|
package/src/chains/mendoza.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineChain } from "viem"
|
|
2
|
-
|
|
3
|
-
export const mendoza = defineChain({
|
|
4
|
-
id: 60138453056,
|
|
5
|
-
name: "Mendoza",
|
|
6
|
-
network: "mendoza",
|
|
7
|
-
nativeCurrency: {
|
|
8
|
-
name: "Ethereum",
|
|
9
|
-
symbol: "ETH",
|
|
10
|
-
decimals: 18,
|
|
11
|
-
},
|
|
12
|
-
rpcUrls: {
|
|
13
|
-
default: {
|
|
14
|
-
http: ["https://mendoza.hoodi.arkiv.network/rpc"],
|
|
15
|
-
webSocket: ["wss://mendoza.hoodi.arkiv.network/rpc/ws"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
blockExplorers: {
|
|
19
|
-
default: {
|
|
20
|
-
name: "Mendoza Arkiv Explorer",
|
|
21
|
-
url: "https://explorer.mendoza.hoodi.arkiv.network",
|
|
22
|
-
apiUrl: "https://explorer.mendoza.hoodi.arkiv.network/api",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
testnet: true,
|
|
26
|
-
})
|
package/src/chains/rosario.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineChain } from "viem"
|
|
2
|
-
|
|
3
|
-
export const rosario = defineChain({
|
|
4
|
-
id: 60138453057,
|
|
5
|
-
name: "Rosario",
|
|
6
|
-
network: "rosario",
|
|
7
|
-
nativeCurrency: {
|
|
8
|
-
name: "Ethereum",
|
|
9
|
-
symbol: "ETH",
|
|
10
|
-
decimals: 18,
|
|
11
|
-
},
|
|
12
|
-
rpcUrls: {
|
|
13
|
-
default: {
|
|
14
|
-
http: ["https://rosario.hoodi.arkiv.network/rpc"],
|
|
15
|
-
webSocket: ["wss://rosario.hoodi.arkiv.network/rpc/ws"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
blockExplorers: {
|
|
19
|
-
default: {
|
|
20
|
-
name: "Rosario Arkiv Explorer",
|
|
21
|
-
url: "https://explorer.rosario.hoodi.arkiv.network",
|
|
22
|
-
apiUrl: "https://explorer.rosario.hoodi.arkiv.network/api",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
testnet: true,
|
|
26
|
-
})
|