@privy-io/chains 0.0.1
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/LICENSE +202 -0
- package/README.md +3 -0
- package/dist/cjs/ethereum/add-chain-to-default-chains.js +1 -0
- package/dist/cjs/ethereum/add-privy-rpc-to-chain.js +1 -0
- package/dist/cjs/ethereum/add-rpc-url-override-to-chain.js +1 -0
- package/dist/cjs/ethereum/dedupe-supported-chains.js +1 -0
- package/dist/cjs/ethereum/default-supported-chains.js +1 -0
- package/dist/cjs/ethereum/definitions/arbitrum.js +1 -0
- package/dist/cjs/ethereum/definitions/arbitrumSepolia.js +1 -0
- package/dist/cjs/ethereum/definitions/avalanche.js +1 -0
- package/dist/cjs/ethereum/definitions/avalancheFuji.js +1 -0
- package/dist/cjs/ethereum/definitions/base.js +1 -0
- package/dist/cjs/ethereum/definitions/baseSepolia.js +1 -0
- package/dist/cjs/ethereum/definitions/berachainArtio.js +1 -0
- package/dist/cjs/ethereum/definitions/celo.js +1 -0
- package/dist/cjs/ethereum/definitions/celoAlfajores.js +1 -0
- package/dist/cjs/ethereum/definitions/filecoin.js +1 -0
- package/dist/cjs/ethereum/definitions/filecoinCalibration.js +1 -0
- package/dist/cjs/ethereum/definitions/garnetHolesky.js +1 -0
- package/dist/cjs/ethereum/definitions/holesky.js +1 -0
- package/dist/cjs/ethereum/definitions/linea.js +1 -0
- package/dist/cjs/ethereum/definitions/lineaTestnet.js +1 -0
- package/dist/cjs/ethereum/definitions/lukso.js +1 -0
- package/dist/cjs/ethereum/definitions/mainnet.js +1 -0
- package/dist/cjs/ethereum/definitions/optimism.js +1 -0
- package/dist/cjs/ethereum/definitions/optimismSepolia.js +1 -0
- package/dist/cjs/ethereum/definitions/polygon.js +1 -0
- package/dist/cjs/ethereum/definitions/polygonAmoy.js +1 -0
- package/dist/cjs/ethereum/definitions/redstone.js +1 -0
- package/dist/cjs/ethereum/definitions/sepolia.js +1 -0
- package/dist/cjs/ethereum/definitions/zora.js +1 -0
- package/dist/cjs/ethereum/definitions/zoraSepolia.js +1 -0
- package/dist/cjs/ethereum/definitions/zoraTestnet.js +1 -0
- package/dist/cjs/ethereum/get-supported-chain-by-id.js +1 -0
- package/dist/cjs/ethereum/types.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/dts/index.d.mts +196 -0
- package/dist/dts/index.d.ts +196 -0
- package/dist/esm/ethereum/add-chain-to-default-chains.mjs +1 -0
- package/dist/esm/ethereum/add-privy-rpc-to-chain.mjs +1 -0
- package/dist/esm/ethereum/add-rpc-url-override-to-chain.mjs +1 -0
- package/dist/esm/ethereum/dedupe-supported-chains.mjs +1 -0
- package/dist/esm/ethereum/default-supported-chains.mjs +1 -0
- package/dist/esm/ethereum/definitions/arbitrum.mjs +1 -0
- package/dist/esm/ethereum/definitions/arbitrumSepolia.mjs +1 -0
- package/dist/esm/ethereum/definitions/avalanche.mjs +1 -0
- package/dist/esm/ethereum/definitions/avalancheFuji.mjs +1 -0
- package/dist/esm/ethereum/definitions/base.mjs +1 -0
- package/dist/esm/ethereum/definitions/baseSepolia.mjs +1 -0
- package/dist/esm/ethereum/definitions/berachainArtio.mjs +1 -0
- package/dist/esm/ethereum/definitions/celo.mjs +1 -0
- package/dist/esm/ethereum/definitions/celoAlfajores.mjs +1 -0
- package/dist/esm/ethereum/definitions/filecoin.mjs +1 -0
- package/dist/esm/ethereum/definitions/filecoinCalibration.mjs +1 -0
- package/dist/esm/ethereum/definitions/garnetHolesky.mjs +1 -0
- package/dist/esm/ethereum/definitions/holesky.mjs +1 -0
- package/dist/esm/ethereum/definitions/linea.mjs +1 -0
- package/dist/esm/ethereum/definitions/lineaTestnet.mjs +1 -0
- package/dist/esm/ethereum/definitions/lukso.mjs +1 -0
- package/dist/esm/ethereum/definitions/mainnet.mjs +1 -0
- package/dist/esm/ethereum/definitions/optimism.mjs +1 -0
- package/dist/esm/ethereum/definitions/optimismSepolia.mjs +1 -0
- package/dist/esm/ethereum/definitions/polygon.mjs +1 -0
- package/dist/esm/ethereum/definitions/polygonAmoy.mjs +1 -0
- package/dist/esm/ethereum/definitions/redstone.mjs +1 -0
- package/dist/esm/ethereum/definitions/sepolia.mjs +1 -0
- package/dist/esm/ethereum/definitions/zora.mjs +1 -0
- package/dist/esm/ethereum/definitions/zoraSepolia.mjs +1 -0
- package/dist/esm/ethereum/definitions/zoraTestnet.mjs +1 -0
- package/dist/esm/ethereum/get-supported-chain-by-id.mjs +1 -0
- package/dist/esm/ethereum/types.mjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/package.json +70 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2022-2023 Horkos, Inc.
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var i=require("./default-supported-chains.js");require("./definitions/arbitrum.js"),require("./definitions/arbitrumSepolia.js"),require("./definitions/avalanche.js"),require("./definitions/avalancheFuji.js"),require("./definitions/base.js"),require("./definitions/baseSepolia.js"),require("./definitions/berachainArtio.js"),require("./definitions/celo.js"),require("./definitions/celoAlfajores.js"),require("./definitions/filecoin.js"),require("./definitions/filecoinCalibration.js"),require("./definitions/garnetHolesky.js"),require("./definitions/holesky.js"),require("./definitions/linea.js"),require("./definitions/lineaTestnet.js"),require("./definitions/lukso.js"),require("./definitions/mainnet.js"),require("./definitions/optimism.js"),require("./definitions/optimismSepolia.js"),require("./definitions/polygon.js"),require("./definitions/polygonAmoy.js"),require("./definitions/redstone.js"),require("./definitions/sepolia.js"),require("./definitions/zora.js"),require("./definitions/zoraSepolia.js"),require("./definitions/zoraTestnet.js"),exports.addToDefaultChains=function(e){let n=e.filter((e=>!i.DEFAULT_SUPPORTED_CHAIN_IDS.has(e.id)));return i.DEFAULT_SUPPORTED_CHAINS.concat(n)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.addPrivyRpcToChain=function(r,t){return{...r,rpcUrls:{...r.rpcUrls,privy:{http:[t]}}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.addRpcUrlOverrideToChain=function(r,e){return{...r,rpcUrls:{...r.rpcUrls,privyWalletOverride:{http:[e]}}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var i=require("./add-privy-rpc-to-chain.js"),e=require("./default-supported-chains.js");require("./definitions/arbitrum.js"),require("./definitions/arbitrumSepolia.js"),require("./definitions/avalanche.js"),require("./definitions/avalancheFuji.js"),require("./definitions/base.js"),require("./definitions/baseSepolia.js"),require("./definitions/berachainArtio.js"),require("./definitions/celo.js"),require("./definitions/celoAlfajores.js"),require("./definitions/filecoin.js"),require("./definitions/filecoinCalibration.js"),require("./definitions/garnetHolesky.js"),require("./definitions/holesky.js"),require("./definitions/linea.js"),require("./definitions/lineaTestnet.js"),require("./definitions/lukso.js"),require("./definitions/mainnet.js"),require("./definitions/optimism.js"),require("./definitions/optimismSepolia.js"),require("./definitions/polygon.js"),require("./definitions/polygonAmoy.js"),require("./definitions/redstone.js"),require("./definitions/sepolia.js"),require("./definitions/zora.js"),require("./definitions/zoraSepolia.js"),require("./definitions/zoraTestnet.js");exports.dedupeSupportedChains=r=>r.map((r=>{if(r.rpcUrls.privyWalletOverride)return r;let n=e.DEFAULT_SUPPORTED_CHAINS.find((i=>i.id===r.id)),s=n?.rpcUrls.privy?.http[0];return s?i.addPrivyRpcToChain(r,s):r}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var i=require("./definitions/arbitrum.js"),e=require("./definitions/arbitrumSepolia.js"),n=require("./definitions/avalanche.js"),r=require("./definitions/avalancheFuji.js"),o=require("./definitions/base.js"),s=require("./definitions/baseSepolia.js"),t=require("./definitions/berachainArtio.js"),a=require("./definitions/celo.js"),l=require("./definitions/celoAlfajores.js"),u=require("./definitions/filecoin.js"),f=require("./definitions/filecoinCalibration.js"),j=require("./definitions/garnetHolesky.js"),d=require("./definitions/holesky.js"),q=require("./definitions/linea.js"),p=require("./definitions/lineaTestnet.js"),m=require("./definitions/lukso.js"),c=require("./definitions/mainnet.js"),S=require("./definitions/optimism.js"),b=require("./definitions/optimismSepolia.js"),y=require("./definitions/polygon.js"),A=require("./definitions/polygonAmoy.js"),h=require("./definitions/redstone.js"),T=require("./definitions/sepolia.js"),g=require("./definitions/zora.js"),k=require("./definitions/zoraSepolia.js"),z=require("./definitions/zoraTestnet.js");const v=[c.mainnet,T.sepolia,d.holesky,i.arbitrum,e.arbitrumSepolia,S.optimism,b.optimismSepolia,y.polygon,A.polygonAmoy,a.celo,l.celoAlfajores,u.filecoin,f.filecoinCalibration,o.base,s.baseSepolia,t.berachainArtio,m.lukso,q.linea,p.lineaTestnet,n.avalanche,r.avalancheFuji,g.zora,z.zoraTestnet,k.zoraSepolia,h.redstone,j.garnetHolesky],D=new Set(v.map((i=>i.id)));exports.DEFAULT_SUPPORTED_CHAINS=v,exports.DEFAULT_SUPPORTED_CHAIN_IDS=D;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.arbitrum={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-mainnet.rpc.privy.systems"]},alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.arbitrumSepolia={id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.arbitrum.io"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.avalanche={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.avalancheFuji={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.base={id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-mainnet.rpc.privy.systems"]},blast:{http:["https://base-mainnet.blastapi.io"],webSocket:["wss://base-mainnet.blastapi.io"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://basescan.org"},default:{name:"Basescan",url:"https://basescan.org"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.baseSepolia={id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.berachainArtio={id:80085,network:"berachain-artio",name:"Berachain Artio",nativeCurrency:{name:"BERA",symbol:"BERA",decimals:18},rpcUrls:{default:{http:["https://berachain-artio.rpc.privy.systems"]},public:{http:["https://berachain-artio.rpc.privy.systems"]}},blockExplorers:{default:{name:"Beratrail",url:"https://artio.beratrail.io"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.celo={id:42220,name:"Celo Mainnet",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},testnet:!1};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.celoAlfajores={id:44787,name:"Celo Alfajores Testnet",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.filecoin={id:314,name:"Filecoin - Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.filecoinCalibration={id:314159,name:"Filecoin - Calibration testnet",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.garnetHolesky={id:17069,name:"Garnet Holesky",network:"garnet-holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"]},public:{http:["https://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.holesky={id:17e3,name:"Holesky",network:"holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},blockExplorers:{etherscan:{name:"EtherScan",url:"https://holesky.etherscan.io"},default:{name:"EtherScan",url:"https://holesky.etherscan.io"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.linea={id:59144,network:"linea-mainnet",name:"Linea Mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"}},testnet:!1};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.lineaTestnet={id:59140,network:"linea-testnet",name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.lukso={id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.mainnet={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://mainnet.rpc.privy.systems"]},alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.optimism={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-mainnet.rpc.privy.systems"]},alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.optimismSepolia={id:11155420,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.optimism.io"]},public:{http:["https://sepolia.optimism.io"]},infura:{http:["https://optimism-sepolia.infura.io/v3"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.polygon={id:137,name:"Polygon Mainnet",network:"polygon",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-mainnet.rpc.privy.systems"]},alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.polygonAmoy={id:80002,name:"Polygon Amoy",network:"polygon-amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-amoy.rpc.privy.systems"]},infura:{http:["https://polygon-amoy.infura.io/v3"],webSocket:["wss://polygon-amoy.infura.io/ws/v3"]},default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"OK LINK",url:"https://www.oklink.com/amoy"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.redstone={id:690,name:"Redstone",network:"redstone",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.redstonechain.com"]},public:{http:["https://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz/"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.sepolia={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{privy:{http:["https://sepolia.rpc.privy.systems"]},alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.zora={id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.zoraSepolia={id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]},public:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.zoraTestnet={id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},testnet:!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var i=require("./default-supported-chains.js");require("./definitions/arbitrum.js"),require("./definitions/arbitrumSepolia.js"),require("./definitions/avalanche.js"),require("./definitions/avalancheFuji.js"),require("./definitions/base.js"),require("./definitions/baseSepolia.js"),require("./definitions/berachainArtio.js"),require("./definitions/celo.js"),require("./definitions/celoAlfajores.js"),require("./definitions/filecoin.js"),require("./definitions/filecoinCalibration.js"),require("./definitions/garnetHolesky.js"),require("./definitions/holesky.js"),require("./definitions/linea.js"),require("./definitions/lineaTestnet.js"),require("./definitions/lukso.js"),require("./definitions/mainnet.js"),require("./definitions/optimism.js"),require("./definitions/optimismSepolia.js"),require("./definitions/polygon.js"),require("./definitions/polygonAmoy.js"),require("./definitions/redstone.js"),require("./definitions/sepolia.js"),require("./definitions/zora.js"),require("./definitions/zoraSepolia.js"),require("./definitions/zoraTestnet.js");exports.getSupportedChainById=e=>i.DEFAULT_SUPPORTED_CHAINS.find((i=>i.id===e));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./ethereum/add-privy-rpc-to-chain.js"),i=require("./ethereum/add-chain-to-default-chains.js"),r=require("./ethereum/default-supported-chains.js"),t=require("./ethereum/add-rpc-url-override-to-chain.js"),o=require("./ethereum/dedupe-supported-chains.js"),s=require("./ethereum/get-supported-chain-by-id.js"),n=require("./ethereum/definitions/arbitrum.js"),a=require("./ethereum/definitions/arbitrumSepolia.js"),u=require("./ethereum/definitions/avalanche.js"),p=require("./ethereum/definitions/avalancheFuji.js"),d=require("./ethereum/definitions/base.js"),h=require("./ethereum/definitions/baseSepolia.js"),m=require("./ethereum/definitions/celo.js"),l=require("./ethereum/definitions/linea.js"),j=require("./ethereum/definitions/mainnet.js"),f=require("./ethereum/definitions/optimism.js"),q=require("./ethereum/definitions/optimismSepolia.js"),c=require("./ethereum/definitions/polygon.js"),x=require("./ethereum/definitions/polygonAmoy.js"),S=require("./ethereum/definitions/sepolia.js"),T=require("./ethereum/definitions/zora.js"),y=require("./ethereum/definitions/zoraSepolia.js"),b=require("./ethereum/definitions/zoraTestnet.js");require("./ethereum/definitions/berachainArtio.js"),require("./ethereum/definitions/celoAlfajores.js"),require("./ethereum/definitions/filecoin.js"),require("./ethereum/definitions/filecoinCalibration.js"),require("./ethereum/definitions/garnetHolesky.js"),require("./ethereum/definitions/holesky.js"),require("./ethereum/definitions/lineaTestnet.js"),require("./ethereum/definitions/lukso.js"),require("./ethereum/definitions/redstone.js");exports.addPrivyRpcToChain=e.addPrivyRpcToChain,exports.addToDefaultChains=i.addToDefaultChains,exports.DEFAULT_SUPPORTED_CHAINS=r.DEFAULT_SUPPORTED_CHAINS,exports.DEFAULT_SUPPORTED_CHAIN_IDS=r.DEFAULT_SUPPORTED_CHAIN_IDS,exports.addRpcUrlOverrideToChain=t.addRpcUrlOverrideToChain,exports.dedupeSupportedChains=o.dedupeSupportedChains,exports.getSupportedChainById=s.getSupportedChainById,exports.arbitrum=n.arbitrum,exports.arbitrumSepolia=a.arbitrumSepolia,exports.avalanche=u.avalanche,exports.avalancheFuji=p.avalancheFuji,exports.base=d.base,exports.baseSepolia=h.baseSepolia,exports.celo=m.celo,exports.linea=l.linea,exports.mainnet=j.mainnet,exports.optimism=f.optimism,exports.optimismSepolia=q.optimismSepolia,exports.polygon=c.polygon,exports.polygonAmoy=x.polygonAmoy,exports.sepolia=S.sepolia,exports.zora=T.zora,exports.zoraSepolia=y.zoraSepolia,exports.zoraTestnet=b.zoraTestnet,exports.VERSION="0.0.1";
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These types are fully compatible with WAGMI chain types, in case
|
|
3
|
+
* we need interop in the future.
|
|
4
|
+
*/
|
|
5
|
+
type RpcUrls = {
|
|
6
|
+
http: readonly string[];
|
|
7
|
+
webSocket?: readonly string[];
|
|
8
|
+
};
|
|
9
|
+
type NativeCurrency = {
|
|
10
|
+
name: string;
|
|
11
|
+
/** 2-6 characters long */
|
|
12
|
+
symbol: string;
|
|
13
|
+
decimals: number;
|
|
14
|
+
};
|
|
15
|
+
type BlockExplorer = {
|
|
16
|
+
name: string;
|
|
17
|
+
url: string;
|
|
18
|
+
};
|
|
19
|
+
type Unit = 'ether' | 'gwei' | 'wei' | number;
|
|
20
|
+
/** A subset of WAGMI's chain type
|
|
21
|
+
* https://github.com/wagmi-dev/references/blob/6aea7ee9c65cfac24f33173ab3c98176b8366f05/packages/chains/src/types.ts#L8
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
*
|
|
25
|
+
* override the RPC URL for a chain
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { mainnet } from 'viem/chains';
|
|
29
|
+
*
|
|
30
|
+
* const mainnetOverride: Chain = {
|
|
31
|
+
* ...mainnet,
|
|
32
|
+
* rpcUrls: {
|
|
33
|
+
* ...mainnet.rpcUrls,
|
|
34
|
+
* privyWalletOverride: {
|
|
35
|
+
* http: [INSERT_MAINNET_OVERRIDE_URL],
|
|
36
|
+
* },
|
|
37
|
+
* },
|
|
38
|
+
* };
|
|
39
|
+
*
|
|
40
|
+
* ```
|
|
41
|
+
* or
|
|
42
|
+
* ```ts
|
|
43
|
+
* import { mainnet } from 'viem/chains';
|
|
44
|
+
* import { addRpcUrlOverrideToChain } from '@privy-io/react-auth';
|
|
45
|
+
*
|
|
46
|
+
* const mainnetOverride = addRpcUrlOverrideToChain(mainnet, INSERT_MAINNET_OVERRIDE_URL);
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
type Chain = {
|
|
51
|
+
/** Id in number form */
|
|
52
|
+
id: number;
|
|
53
|
+
/** Human readable name */
|
|
54
|
+
name: string;
|
|
55
|
+
/** Internal network name */
|
|
56
|
+
network?: string;
|
|
57
|
+
/** Currency used by chain */
|
|
58
|
+
nativeCurrency: NativeCurrency;
|
|
59
|
+
/** Collection of block explorers */
|
|
60
|
+
blockExplorers?: {
|
|
61
|
+
[key: string]: BlockExplorer;
|
|
62
|
+
default: BlockExplorer;
|
|
63
|
+
};
|
|
64
|
+
/** Collection of RPC endpoints */
|
|
65
|
+
rpcUrls: {
|
|
66
|
+
[key: string]: RpcUrls;
|
|
67
|
+
default: RpcUrls;
|
|
68
|
+
} | {
|
|
69
|
+
[key: string]: RpcUrls;
|
|
70
|
+
default: RpcUrls;
|
|
71
|
+
/** @optional Allows you to override the RPC url for this chain */
|
|
72
|
+
privyWalletOverride: RpcUrls;
|
|
73
|
+
};
|
|
74
|
+
/** Flag for test networks */
|
|
75
|
+
testnet?: boolean;
|
|
76
|
+
};
|
|
77
|
+
type ChainLikeWithId = {
|
|
78
|
+
id: number;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* RPC configuration for wallets.
|
|
82
|
+
*/
|
|
83
|
+
type RpcConfig = {
|
|
84
|
+
/**
|
|
85
|
+
* Mapping of chainId to RPC URL. Overrides Privy default RPC URLs that are shared across projects. Set your own RPC URLs
|
|
86
|
+
* to avoid rate limits or other throughput bottlenecks.
|
|
87
|
+
*
|
|
88
|
+
* Do not provide an RPC URL that can serve multiple networks. You should only provide RPC URLs that are speciifc to the
|
|
89
|
+
* chain ID you'd like to override.
|
|
90
|
+
*/
|
|
91
|
+
rpcUrls?: {
|
|
92
|
+
[key: number]: string;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Mapping between `walletClientType`s to the length of time after which RPC requests will timeout for that
|
|
96
|
+
* `walletClientType`.
|
|
97
|
+
*
|
|
98
|
+
* By default, all RPC requests through Privy will timeout after 2 mins (120000 ms). Use this object to
|
|
99
|
+
* override the RPC timeout in ms for specific` walletClientType`s, e.g. 'safe', in order to extend or
|
|
100
|
+
* shorten the timeout duration.
|
|
101
|
+
*/
|
|
102
|
+
rpcTimeouts?: {
|
|
103
|
+
[key in string]?: number;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
declare function addPrivyRpcToChain(chain: Chain, rpcUrl: string): Chain;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Helper function that combines our SDK's default supported chains with any chains passed into this
|
|
111
|
+
* method. Typically, we will the app's configured `supportedChains` here to get a total list of all
|
|
112
|
+
* possible supported chains (for funding and fetching token price flows).
|
|
113
|
+
*
|
|
114
|
+
* @param additionalChains {Chain[]} array of chains to add to default list
|
|
115
|
+
* @returns array of all possible supported chains
|
|
116
|
+
*/
|
|
117
|
+
declare function addToDefaultChains(additionalChains: Chain[]): Chain[];
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* A List of the privy default supported chains, in alphabetical order, except
|
|
121
|
+
* with mainnet + L1 testnets first.
|
|
122
|
+
*/
|
|
123
|
+
declare const DEFAULT_SUPPORTED_CHAINS: Chain[];
|
|
124
|
+
/**
|
|
125
|
+
* A set of the supported chain ids
|
|
126
|
+
*/
|
|
127
|
+
declare const DEFAULT_SUPPORTED_CHAIN_IDS: Set<number>;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Allows you to override the RPC url for the given chain
|
|
131
|
+
*
|
|
132
|
+
* @param chain {@link Chain} chain you want to modify
|
|
133
|
+
* @param rpcUrl {@type string} rpc url you want to use for this chain
|
|
134
|
+
* @returns modified chain object
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
*
|
|
138
|
+
* ```ts
|
|
139
|
+
* import { mainnet } from 'viem/chains';
|
|
140
|
+
* import { addRpcUrlOverrideToChain } from '@privy-io/react-auth';
|
|
141
|
+
*
|
|
142
|
+
* const mainnetOverride = addRpcUrlOverrideToChain(mainnet, INSERT_MAINNET_OVERRIDE_URL);
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
declare function addRpcUrlOverrideToChain(chain: Chain, rpcUrl: string): Chain;
|
|
146
|
+
|
|
147
|
+
declare const dedupeSupportedChains: (chains: Chain[]) => Chain[];
|
|
148
|
+
|
|
149
|
+
declare const getSupportedChainById: (id: number) => Chain | undefined;
|
|
150
|
+
|
|
151
|
+
declare const arbitrum: Chain;
|
|
152
|
+
|
|
153
|
+
declare const arbitrumSepolia: Chain;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* These have been modified from the original WAGMI chain definition
|
|
157
|
+
*/
|
|
158
|
+
declare const avalanche: Chain;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* These have been modified from the original WAGMI chain definition
|
|
162
|
+
*/
|
|
163
|
+
declare const avalancheFuji: Chain;
|
|
164
|
+
|
|
165
|
+
declare const base: Chain;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* These have been modified from the original WAGMI chain definition
|
|
169
|
+
*/
|
|
170
|
+
declare const baseSepolia: Chain;
|
|
171
|
+
|
|
172
|
+
declare const celo: Chain;
|
|
173
|
+
|
|
174
|
+
declare const linea: Chain;
|
|
175
|
+
|
|
176
|
+
declare const mainnet: Chain;
|
|
177
|
+
|
|
178
|
+
declare const optimism: Chain;
|
|
179
|
+
|
|
180
|
+
declare const optimismSepolia: Chain;
|
|
181
|
+
|
|
182
|
+
declare const polygon: Chain;
|
|
183
|
+
|
|
184
|
+
declare const polygonAmoy: Chain;
|
|
185
|
+
|
|
186
|
+
declare const sepolia: Chain;
|
|
187
|
+
|
|
188
|
+
declare const zora: Chain;
|
|
189
|
+
|
|
190
|
+
declare const zoraSepolia: Chain;
|
|
191
|
+
|
|
192
|
+
declare const zoraTestnet: Chain;
|
|
193
|
+
|
|
194
|
+
declare const VERSION = "__VERSION__";
|
|
195
|
+
|
|
196
|
+
export { type Chain, type ChainLikeWithId, DEFAULT_SUPPORTED_CHAINS, DEFAULT_SUPPORTED_CHAIN_IDS, type RpcConfig, type Unit, VERSION, addPrivyRpcToChain, addRpcUrlOverrideToChain, addToDefaultChains, arbitrum, arbitrumSepolia, avalanche, avalancheFuji, base, baseSepolia, celo, dedupeSupportedChains, getSupportedChainById, linea, mainnet, optimism, optimismSepolia, polygon, polygonAmoy, sepolia, zora, zoraSepolia, zoraTestnet };
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These types are fully compatible with WAGMI chain types, in case
|
|
3
|
+
* we need interop in the future.
|
|
4
|
+
*/
|
|
5
|
+
type RpcUrls = {
|
|
6
|
+
http: readonly string[];
|
|
7
|
+
webSocket?: readonly string[];
|
|
8
|
+
};
|
|
9
|
+
type NativeCurrency = {
|
|
10
|
+
name: string;
|
|
11
|
+
/** 2-6 characters long */
|
|
12
|
+
symbol: string;
|
|
13
|
+
decimals: number;
|
|
14
|
+
};
|
|
15
|
+
type BlockExplorer = {
|
|
16
|
+
name: string;
|
|
17
|
+
url: string;
|
|
18
|
+
};
|
|
19
|
+
type Unit = 'ether' | 'gwei' | 'wei' | number;
|
|
20
|
+
/** A subset of WAGMI's chain type
|
|
21
|
+
* https://github.com/wagmi-dev/references/blob/6aea7ee9c65cfac24f33173ab3c98176b8366f05/packages/chains/src/types.ts#L8
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
*
|
|
25
|
+
* override the RPC URL for a chain
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { mainnet } from 'viem/chains';
|
|
29
|
+
*
|
|
30
|
+
* const mainnetOverride: Chain = {
|
|
31
|
+
* ...mainnet,
|
|
32
|
+
* rpcUrls: {
|
|
33
|
+
* ...mainnet.rpcUrls,
|
|
34
|
+
* privyWalletOverride: {
|
|
35
|
+
* http: [INSERT_MAINNET_OVERRIDE_URL],
|
|
36
|
+
* },
|
|
37
|
+
* },
|
|
38
|
+
* };
|
|
39
|
+
*
|
|
40
|
+
* ```
|
|
41
|
+
* or
|
|
42
|
+
* ```ts
|
|
43
|
+
* import { mainnet } from 'viem/chains';
|
|
44
|
+
* import { addRpcUrlOverrideToChain } from '@privy-io/react-auth';
|
|
45
|
+
*
|
|
46
|
+
* const mainnetOverride = addRpcUrlOverrideToChain(mainnet, INSERT_MAINNET_OVERRIDE_URL);
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
type Chain = {
|
|
51
|
+
/** Id in number form */
|
|
52
|
+
id: number;
|
|
53
|
+
/** Human readable name */
|
|
54
|
+
name: string;
|
|
55
|
+
/** Internal network name */
|
|
56
|
+
network?: string;
|
|
57
|
+
/** Currency used by chain */
|
|
58
|
+
nativeCurrency: NativeCurrency;
|
|
59
|
+
/** Collection of block explorers */
|
|
60
|
+
blockExplorers?: {
|
|
61
|
+
[key: string]: BlockExplorer;
|
|
62
|
+
default: BlockExplorer;
|
|
63
|
+
};
|
|
64
|
+
/** Collection of RPC endpoints */
|
|
65
|
+
rpcUrls: {
|
|
66
|
+
[key: string]: RpcUrls;
|
|
67
|
+
default: RpcUrls;
|
|
68
|
+
} | {
|
|
69
|
+
[key: string]: RpcUrls;
|
|
70
|
+
default: RpcUrls;
|
|
71
|
+
/** @optional Allows you to override the RPC url for this chain */
|
|
72
|
+
privyWalletOverride: RpcUrls;
|
|
73
|
+
};
|
|
74
|
+
/** Flag for test networks */
|
|
75
|
+
testnet?: boolean;
|
|
76
|
+
};
|
|
77
|
+
type ChainLikeWithId = {
|
|
78
|
+
id: number;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* RPC configuration for wallets.
|
|
82
|
+
*/
|
|
83
|
+
type RpcConfig = {
|
|
84
|
+
/**
|
|
85
|
+
* Mapping of chainId to RPC URL. Overrides Privy default RPC URLs that are shared across projects. Set your own RPC URLs
|
|
86
|
+
* to avoid rate limits or other throughput bottlenecks.
|
|
87
|
+
*
|
|
88
|
+
* Do not provide an RPC URL that can serve multiple networks. You should only provide RPC URLs that are speciifc to the
|
|
89
|
+
* chain ID you'd like to override.
|
|
90
|
+
*/
|
|
91
|
+
rpcUrls?: {
|
|
92
|
+
[key: number]: string;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Mapping between `walletClientType`s to the length of time after which RPC requests will timeout for that
|
|
96
|
+
* `walletClientType`.
|
|
97
|
+
*
|
|
98
|
+
* By default, all RPC requests through Privy will timeout after 2 mins (120000 ms). Use this object to
|
|
99
|
+
* override the RPC timeout in ms for specific` walletClientType`s, e.g. 'safe', in order to extend or
|
|
100
|
+
* shorten the timeout duration.
|
|
101
|
+
*/
|
|
102
|
+
rpcTimeouts?: {
|
|
103
|
+
[key in string]?: number;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
declare function addPrivyRpcToChain(chain: Chain, rpcUrl: string): Chain;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Helper function that combines our SDK's default supported chains with any chains passed into this
|
|
111
|
+
* method. Typically, we will the app's configured `supportedChains` here to get a total list of all
|
|
112
|
+
* possible supported chains (for funding and fetching token price flows).
|
|
113
|
+
*
|
|
114
|
+
* @param additionalChains {Chain[]} array of chains to add to default list
|
|
115
|
+
* @returns array of all possible supported chains
|
|
116
|
+
*/
|
|
117
|
+
declare function addToDefaultChains(additionalChains: Chain[]): Chain[];
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* A List of the privy default supported chains, in alphabetical order, except
|
|
121
|
+
* with mainnet + L1 testnets first.
|
|
122
|
+
*/
|
|
123
|
+
declare const DEFAULT_SUPPORTED_CHAINS: Chain[];
|
|
124
|
+
/**
|
|
125
|
+
* A set of the supported chain ids
|
|
126
|
+
*/
|
|
127
|
+
declare const DEFAULT_SUPPORTED_CHAIN_IDS: Set<number>;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Allows you to override the RPC url for the given chain
|
|
131
|
+
*
|
|
132
|
+
* @param chain {@link Chain} chain you want to modify
|
|
133
|
+
* @param rpcUrl {@type string} rpc url you want to use for this chain
|
|
134
|
+
* @returns modified chain object
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
*
|
|
138
|
+
* ```ts
|
|
139
|
+
* import { mainnet } from 'viem/chains';
|
|
140
|
+
* import { addRpcUrlOverrideToChain } from '@privy-io/react-auth';
|
|
141
|
+
*
|
|
142
|
+
* const mainnetOverride = addRpcUrlOverrideToChain(mainnet, INSERT_MAINNET_OVERRIDE_URL);
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
declare function addRpcUrlOverrideToChain(chain: Chain, rpcUrl: string): Chain;
|
|
146
|
+
|
|
147
|
+
declare const dedupeSupportedChains: (chains: Chain[]) => Chain[];
|
|
148
|
+
|
|
149
|
+
declare const getSupportedChainById: (id: number) => Chain | undefined;
|
|
150
|
+
|
|
151
|
+
declare const arbitrum: Chain;
|
|
152
|
+
|
|
153
|
+
declare const arbitrumSepolia: Chain;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* These have been modified from the original WAGMI chain definition
|
|
157
|
+
*/
|
|
158
|
+
declare const avalanche: Chain;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* These have been modified from the original WAGMI chain definition
|
|
162
|
+
*/
|
|
163
|
+
declare const avalancheFuji: Chain;
|
|
164
|
+
|
|
165
|
+
declare const base: Chain;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* These have been modified from the original WAGMI chain definition
|
|
169
|
+
*/
|
|
170
|
+
declare const baseSepolia: Chain;
|
|
171
|
+
|
|
172
|
+
declare const celo: Chain;
|
|
173
|
+
|
|
174
|
+
declare const linea: Chain;
|
|
175
|
+
|
|
176
|
+
declare const mainnet: Chain;
|
|
177
|
+
|
|
178
|
+
declare const optimism: Chain;
|
|
179
|
+
|
|
180
|
+
declare const optimismSepolia: Chain;
|
|
181
|
+
|
|
182
|
+
declare const polygon: Chain;
|
|
183
|
+
|
|
184
|
+
declare const polygonAmoy: Chain;
|
|
185
|
+
|
|
186
|
+
declare const sepolia: Chain;
|
|
187
|
+
|
|
188
|
+
declare const zora: Chain;
|
|
189
|
+
|
|
190
|
+
declare const zoraSepolia: Chain;
|
|
191
|
+
|
|
192
|
+
declare const zoraTestnet: Chain;
|
|
193
|
+
|
|
194
|
+
declare const VERSION = "__VERSION__";
|
|
195
|
+
|
|
196
|
+
export { type Chain, type ChainLikeWithId, DEFAULT_SUPPORTED_CHAINS, DEFAULT_SUPPORTED_CHAIN_IDS, type RpcConfig, type Unit, VERSION, addPrivyRpcToChain, addRpcUrlOverrideToChain, addToDefaultChains, arbitrum, arbitrumSepolia, avalanche, avalancheFuji, base, baseSepolia, celo, dedupeSupportedChains, getSupportedChainById, linea, mainnet, optimism, optimismSepolia, polygon, polygonAmoy, sepolia, zora, zoraSepolia, zoraTestnet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEFAULT_SUPPORTED_CHAIN_IDS as i,DEFAULT_SUPPORTED_CHAINS as o}from"./default-supported-chains.mjs";import"./definitions/arbitrum.mjs";import"./definitions/arbitrumSepolia.mjs";import"./definitions/avalanche.mjs";import"./definitions/avalancheFuji.mjs";import"./definitions/base.mjs";import"./definitions/baseSepolia.mjs";import"./definitions/berachainArtio.mjs";import"./definitions/celo.mjs";import"./definitions/celoAlfajores.mjs";import"./definitions/filecoin.mjs";import"./definitions/filecoinCalibration.mjs";import"./definitions/garnetHolesky.mjs";import"./definitions/holesky.mjs";import"./definitions/linea.mjs";import"./definitions/lineaTestnet.mjs";import"./definitions/lukso.mjs";import"./definitions/mainnet.mjs";import"./definitions/optimism.mjs";import"./definitions/optimismSepolia.mjs";import"./definitions/polygon.mjs";import"./definitions/polygonAmoy.mjs";import"./definitions/redstone.mjs";import"./definitions/sepolia.mjs";import"./definitions/zora.mjs";import"./definitions/zoraSepolia.mjs";import"./definitions/zoraTestnet.mjs";function t(t){let n=t.filter((o=>!i.has(o.id)));return o.concat(n)}export{t as addToDefaultChains};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(r,p){return{...r,rpcUrls:{...r.rpcUrls,privy:{http:[p]}}}}export{r as addPrivyRpcToChain};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(r,t){return{...r,rpcUrls:{...r.rpcUrls,privyWalletOverride:{http:[t]}}}}export{r as addRpcUrlOverrideToChain};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{addPrivyRpcToChain as i}from"./add-privy-rpc-to-chain.mjs";import{DEFAULT_SUPPORTED_CHAINS as o}from"./default-supported-chains.mjs";import"./definitions/arbitrum.mjs";import"./definitions/arbitrumSepolia.mjs";import"./definitions/avalanche.mjs";import"./definitions/avalancheFuji.mjs";import"./definitions/base.mjs";import"./definitions/baseSepolia.mjs";import"./definitions/berachainArtio.mjs";import"./definitions/celo.mjs";import"./definitions/celoAlfajores.mjs";import"./definitions/filecoin.mjs";import"./definitions/filecoinCalibration.mjs";import"./definitions/garnetHolesky.mjs";import"./definitions/holesky.mjs";import"./definitions/linea.mjs";import"./definitions/lineaTestnet.mjs";import"./definitions/lukso.mjs";import"./definitions/mainnet.mjs";import"./definitions/optimism.mjs";import"./definitions/optimismSepolia.mjs";import"./definitions/polygon.mjs";import"./definitions/polygonAmoy.mjs";import"./definitions/redstone.mjs";import"./definitions/sepolia.mjs";import"./definitions/zora.mjs";import"./definitions/zoraSepolia.mjs";import"./definitions/zoraTestnet.mjs";const t=t=>t.map((t=>{if(t.rpcUrls.privyWalletOverride)return t;let n=o.find((i=>i.id===t.id)),s=n?.rpcUrls.privy?.http[0];return s?i(t,s):t}));export{t as dedupeSupportedChains};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{arbitrum as i}from"./definitions/arbitrum.mjs";import{arbitrumSepolia as o}from"./definitions/arbitrumSepolia.mjs";import{avalanche as m}from"./definitions/avalanche.mjs";import{avalancheFuji as n}from"./definitions/avalancheFuji.mjs";import{base as t}from"./definitions/base.mjs";import{baseSepolia as r}from"./definitions/baseSepolia.mjs";import{berachainArtio as s}from"./definitions/berachainArtio.mjs";import{celo as e}from"./definitions/celo.mjs";import{celoAlfajores as f}from"./definitions/celoAlfajores.mjs";import{filecoin as p}from"./definitions/filecoin.mjs";import{filecoinCalibration as a}from"./definitions/filecoinCalibration.mjs";import{garnetHolesky as d}from"./definitions/garnetHolesky.mjs";import{holesky as j}from"./definitions/holesky.mjs";import{linea as l}from"./definitions/linea.mjs";import{lineaTestnet as c}from"./definitions/lineaTestnet.mjs";import{lukso as b}from"./definitions/lukso.mjs";import{mainnet as y}from"./definitions/mainnet.mjs";import{optimism as S}from"./definitions/optimism.mjs";import{optimismSepolia as h}from"./definitions/optimismSepolia.mjs";import{polygon as u}from"./definitions/polygon.mjs";import{polygonAmoy as g}from"./definitions/polygonAmoy.mjs";import{redstone as k}from"./definitions/redstone.mjs";import{sepolia as z}from"./definitions/sepolia.mjs";import{zora as A}from"./definitions/zora.mjs";import{zoraSepolia as v}from"./definitions/zoraSepolia.mjs";import{zoraTestnet as T}from"./definitions/zoraTestnet.mjs";const w=[y,z,j,i,o,S,h,u,g,e,f,p,a,t,r,s,b,l,c,m,n,A,T,v,k,d],x=new Set(w.map((i=>i.id)));export{w as DEFAULT_SUPPORTED_CHAINS,x as DEFAULT_SUPPORTED_CHAIN_IDS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-mainnet.rpc.privy.systems"]},alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}}};export{t as arbitrum};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r={id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.arbitrum.io"}},testnet:!0};export{r as arbitrumSepolia};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}}};export{a as avalanche};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},testnet:!0};export{t as avalancheFuji};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-mainnet.rpc.privy.systems"]},blast:{http:["https://base-mainnet.blastapi.io"],webSocket:["wss://base-mainnet.blastapi.io"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://basescan.org"},default:{name:"Basescan",url:"https://basescan.org"}}};export{t as base};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0};export{e as baseSepolia};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={id:80085,network:"berachain-artio",name:"Berachain Artio",nativeCurrency:{name:"BERA",symbol:"BERA",decimals:18},rpcUrls:{default:{http:["https://berachain-artio.rpc.privy.systems"]},public:{http:["https://berachain-artio.rpc.privy.systems"]}},blockExplorers:{default:{name:"Beratrail",url:"https://artio.beratrail.io"}},testnet:!0};export{t as berachainArtio};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:42220,name:"Celo Mainnet",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},testnet:!1};export{e as celo};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:44787,name:"Celo Alfajores Testnet",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},testnet:!0};export{e as celoAlfajores};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i={id:314,name:"Filecoin - Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}}};export{i as filecoin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i={id:314159,name:"Filecoin - Calibration testnet",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}};export{i as filecoinCalibration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={id:17069,name:"Garnet Holesky",network:"garnet-holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"]},public:{http:["https://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}}};export{t as garnetHolesky};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:17e3,name:"Holesky",network:"holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},blockExplorers:{etherscan:{name:"EtherScan",url:"https://holesky.etherscan.io"},default:{name:"EtherScan",url:"https://holesky.etherscan.io"}}};export{e as holesky};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:59144,network:"linea-mainnet",name:"Linea Mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"}},testnet:!1};export{e as linea};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:59140,network:"linea-testnet",name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"}},testnet:!0};export{e as lineaTestnet};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network"}}};export{e as lukso};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://mainnet.rpc.privy.systems"]},alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}}};export{t as mainnet};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-mainnet.rpc.privy.systems"]},alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}}};export{t as optimism};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={id:11155420,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.optimism.io"]},public:{http:["https://sepolia.optimism.io"]},infura:{http:["https://optimism-sepolia.infura.io/v3"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}},testnet:!0};export{t as optimismSepolia};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={id:137,name:"Polygon Mainnet",network:"polygon",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-mainnet.rpc.privy.systems"]},alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}}};export{o as polygon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={id:80002,name:"Polygon Amoy",network:"polygon-amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-amoy.rpc.privy.systems"]},infura:{http:["https://polygon-amoy.infura.io/v3"],webSocket:["wss://polygon-amoy.infura.io/ws/v3"]},default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"OK LINK",url:"https://www.oklink.com/amoy"}},testnet:!0};export{o as polygonAmoy};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:690,name:"Redstone",network:"redstone",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.redstonechain.com"]},public:{http:["https://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz/"}}};export{e as redstone};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{privy:{http:["https://sepolia.rpc.privy.systems"]},alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},testnet:!0};export{e as sepolia};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r={id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}}};export{r as zora};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]},public:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}},testnet:!0};export{e as zoraSepolia};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},testnet:!0};export{e as zoraTestnet};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEFAULT_SUPPORTED_CHAINS as i}from"./default-supported-chains.mjs";import"./definitions/arbitrum.mjs";import"./definitions/arbitrumSepolia.mjs";import"./definitions/avalanche.mjs";import"./definitions/avalancheFuji.mjs";import"./definitions/base.mjs";import"./definitions/baseSepolia.mjs";import"./definitions/berachainArtio.mjs";import"./definitions/celo.mjs";import"./definitions/celoAlfajores.mjs";import"./definitions/filecoin.mjs";import"./definitions/filecoinCalibration.mjs";import"./definitions/garnetHolesky.mjs";import"./definitions/holesky.mjs";import"./definitions/linea.mjs";import"./definitions/lineaTestnet.mjs";import"./definitions/lukso.mjs";import"./definitions/mainnet.mjs";import"./definitions/optimism.mjs";import"./definitions/optimismSepolia.mjs";import"./definitions/polygon.mjs";import"./definitions/polygonAmoy.mjs";import"./definitions/redstone.mjs";import"./definitions/sepolia.mjs";import"./definitions/zora.mjs";import"./definitions/zoraSepolia.mjs";import"./definitions/zoraTestnet.mjs";const o=o=>i.find((i=>i.id===o));export{o as getSupportedChainById};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{addPrivyRpcToChain}from"./ethereum/add-privy-rpc-to-chain.mjs";export{addToDefaultChains}from"./ethereum/add-chain-to-default-chains.mjs";export{DEFAULT_SUPPORTED_CHAINS,DEFAULT_SUPPORTED_CHAIN_IDS}from"./ethereum/default-supported-chains.mjs";export{addRpcUrlOverrideToChain}from"./ethereum/add-rpc-url-override-to-chain.mjs";export{dedupeSupportedChains}from"./ethereum/dedupe-supported-chains.mjs";export{getSupportedChainById}from"./ethereum/get-supported-chain-by-id.mjs";export{arbitrum}from"./ethereum/definitions/arbitrum.mjs";export{arbitrumSepolia}from"./ethereum/definitions/arbitrumSepolia.mjs";export{avalanche}from"./ethereum/definitions/avalanche.mjs";export{avalancheFuji}from"./ethereum/definitions/avalancheFuji.mjs";export{base}from"./ethereum/definitions/base.mjs";export{baseSepolia}from"./ethereum/definitions/baseSepolia.mjs";export{celo}from"./ethereum/definitions/celo.mjs";export{linea}from"./ethereum/definitions/linea.mjs";export{mainnet}from"./ethereum/definitions/mainnet.mjs";export{optimism}from"./ethereum/definitions/optimism.mjs";export{optimismSepolia}from"./ethereum/definitions/optimismSepolia.mjs";export{polygon}from"./ethereum/definitions/polygon.mjs";export{polygonAmoy}from"./ethereum/definitions/polygonAmoy.mjs";export{sepolia}from"./ethereum/definitions/sepolia.mjs";export{zora}from"./ethereum/definitions/zora.mjs";export{zoraSepolia}from"./ethereum/definitions/zoraSepolia.mjs";export{zoraTestnet}from"./ethereum/definitions/zoraTestnet.mjs";import"./ethereum/definitions/berachainArtio.mjs";import"./ethereum/definitions/celoAlfajores.mjs";import"./ethereum/definitions/filecoin.mjs";import"./ethereum/definitions/filecoinCalibration.mjs";import"./ethereum/definitions/garnetHolesky.mjs";import"./ethereum/definitions/holesky.mjs";import"./ethereum/definitions/lineaTestnet.mjs";import"./ethereum/definitions/lukso.mjs";import"./ethereum/definitions/redstone.mjs";const e="0.0.1";export{e as VERSION};
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@privy-io/chains",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Network configurations for Privy SDKs",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"author": "privy.io",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"type": "commonjs",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"require": {
|
|
13
|
+
"types": "./dist/dts/index.d.ts",
|
|
14
|
+
"default": "./dist/cjs/index.js"
|
|
15
|
+
},
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./dist/dts/index.d.mts",
|
|
18
|
+
"default": "./dist/esm/index.mjs"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"main": "./dist/cjs/index.js",
|
|
23
|
+
"module": "./dist/esm/index.mjs",
|
|
24
|
+
"types": "./dist/dts/index.d.ts",
|
|
25
|
+
"files": [
|
|
26
|
+
"dist/**/*",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "rollup --config rollup.types.mjs && rollup --config rollup.build.mjs",
|
|
32
|
+
"check-types": "tsc --noEmit",
|
|
33
|
+
"clean": "rm -rf dist .turbo",
|
|
34
|
+
"dev": "concurrently --prefix=none \"rollup --config rollup.types.mjs --watch\" \"rollup --config rollup.dev.mjs --watch\"",
|
|
35
|
+
"format": "eslint src --fix",
|
|
36
|
+
"lint": "eslint src",
|
|
37
|
+
"test": "jest",
|
|
38
|
+
"test:watch": "jest --watch"
|
|
39
|
+
},
|
|
40
|
+
"browserslist": [
|
|
41
|
+
"defaults",
|
|
42
|
+
"not op_mini all"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@privy-io/build-config": "*",
|
|
47
|
+
"@privy-io/eslint-config-custom": "*",
|
|
48
|
+
"@privy-io/tsconfig": "*",
|
|
49
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
50
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
51
|
+
"@rollup/plugin-swc": "^0.4.0",
|
|
52
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
53
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
54
|
+
"@swc/core": "^1.10.0",
|
|
55
|
+
"@swc/plugin-styled-components": "^6.0.1",
|
|
56
|
+
"@tsconfig/node16-strictest-esm": "^1.0.3",
|
|
57
|
+
"glob": "^10.3.12",
|
|
58
|
+
"jest": "^29.7.0",
|
|
59
|
+
"@swc/jest": "0.2.37",
|
|
60
|
+
"rollup": "^4.28.0",
|
|
61
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
62
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
63
|
+
"typescript": "~5.5.3"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {},
|
|
66
|
+
"peerDependenciesMeta": {},
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
}
|
|
70
|
+
}
|