Compare commits

...
Author SHA1 Message Date
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
6829ee0ee9 Version Packages (#1581)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-13 19:58:29 -07:00
Phillip HoandGitHub 6df24a2eb9 fix: Typo on setting maxFeePerGas (#1609) 2023-09-14 00:58:09 +00:00
nkrishangandGitHub 8b73abfd83 [SDK][Contracts-js][React] Use IAccountFactoryCore for detecting AccountFactory extension (#1607) 2023-09-13 15:27:40 +00:00
FirekeeperandGitHub 66c4ade868 [Unity] Support tx builder functionality (#1595) 2023-09-12 18:28:25 +00:00
Manan TankandGitHub 2a873d2f80 Fix wallets build in windows with cross-env (#1606) 2023-09-12 10:45:38 +00:00
iketwandGitHub bb320c7e97 [RN] Pass download options to storage (#1605) 2023-09-11 21:31:40 +00:00
931ee7930f adding phantom wallet (#1596)
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2023-09-11 11:57:20 -07:00
YashandGitHub f55fd291bf Update addresses (#1600) 2023-09-11 17:07:15 +00:00
Manan TankandGitHub 3056c34c64 update chains and fix test (#1599) 2023-09-11 14:03:38 +00:00
Winston YeoandGitHub f90427650c feat(wallets): enable clientId to be used with paper ews (#1597) 2023-09-09 08:55:55 +00:00
Winston YeoandGitHub defe5fced3 feat(wallets): Add EmbeddedWalletSdk (#1563) 2023-09-08 10:42:26 +00:00
Joaquim VergesandGitHub c0070c2cc0 Handle default gas values for raw transactions, expose from property for 1155 airdrops (#1594) 2023-09-08 00:18:51 +00:00
YashandGitHub d50863f455 Airdrop abi conflict resolution (#1591) 2023-09-06 22:46:53 +00:00
iketwandGitHub 87ed24e1b4 [RN] Sets correct UI types to some compoments (#1590) 2023-09-06 20:27:45 +00:00
YashandGitHub 7e564163ce [SDK] Custom gasprice BitTorrent mainnet (#1589) 2023-09-06 19:13:08 +00:00
Manan TankandGitHub 0307671c63 Fix SmartWallet and Safe connection issue (#1588) 2023-09-06 17:39:00 +00:00
iketwandGitHub 4a7f41b3ee [RN/React] Remove signer as a prop (#1587) 2023-09-06 15:14:30 +00:00
Adam MajmudarandGitHub 2f187d1375 [Local Wallet] Fix bug in loadOrCreate (#1585) 2023-09-05 21:55:04 +00:00
iketwandGitHub 4567faef47 Update contributing guide to explain release-pr flow (#1583) 2023-09-05 21:43:37 +00:00
Manan TankandGitHub d37c3a75e7 Fix Rainbow wallet connection in mobile (#1577) 2023-09-04 20:39:15 +00:00
174 changed files with 3287 additions and 535 deletions
+21
View File
@@ -107,6 +107,27 @@ In your test project, you need to:
1. Delete the dependencies cache. If you're using Next.js, that is the `.next` directory, and if you're using CRA, that is the `node_modules/.cache` directory.
2. Restart the development server.
#### Testing from npm
You can also test your changes by publishing a dev package to npm and adding your package as you normally do in your projects.
Once you have your PR up you can add a comment with the text: `/release-pr`. This will trigger a GitHub action that will publish a dev version to npm.
You can see the action progress in GitHub's `Actions` tab, look for the workflow: `release-pr`.
Once the action finishes executing, select it, click on deploy and look for the `Deploy pre-release` item. Scroll all the way to the bottom and you should see something like:
```
success packages published successfully:
🦋 @***-dev/[email protected]
🦋 @***-dev/[email protected]
...
```
These are the versions the GH action published to npm for testing purposes. Let's assume you're working on the `@thirdweb-dev/react` package, you can then run:
`yarn add @thirdweb-dev/react@0.0.0-dev-06a7cb1-20230901190619` to install the dev package.
<br/>
### Publish Your Changes
+7
View File
@@ -1,5 +1,12 @@
# @thirdweb-dev/auth
## 3.2.41
### Patch Changes
- Updated dependencies [[`2a873d2f`](https://github.com/thirdweb-dev/js/commit/2a873d2f80271208819bac88b32cea0b48761c8d), [`f9042765`](https://github.com/thirdweb-dev/js/commit/f90427650c037b2c437685734ddc3398ad3e2612), [`defe5fce`](https://github.com/thirdweb-dev/js/commit/defe5fced3fd738157616a9f1644c5092dcaa5a8), [`2f187d13`](https://github.com/thirdweb-dev/js/commit/2f187d13754f571b7205fc1b743efde767b1b1c8), [`931ee793`](https://github.com/thirdweb-dev/js/commit/931ee7930f16c25e4d775d2d93538a5cfe770353)]:
- @thirdweb-dev/wallets@1.2.0
## 3.2.40
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/auth",
"version": "3.2.40",
"version": "3.2.41",
"main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js",
"browser": {
+8
View File
@@ -1,5 +1,13 @@
# @thirdweb-dev/chains
## 0.1.51
### Patch Changes
- [#1607](https://github.com/thirdweb-dev/js/pull/1607) [`8b73abfd`](https://github.com/thirdweb-dev/js/commit/8b73abfd83c7a8235f5d65f07dc3ad1296b40ae0) Thanks [@nkrishang](https://github.com/nkrishang)! - Use IAccountFactoryCore
- [#1599](https://github.com/thirdweb-dev/js/pull/1599) [`3056c34c`](https://github.com/thirdweb-dev/js/commit/3056c34c646e1a8c80f1323899c163e0fa867fd1) Thanks [@MananTank](https://github.com/MananTank)! - Update chains
## 0.1.50
### Patch Changes
+1
View File
@@ -16,6 +16,7 @@ export default {
"https://api.mycryptoapi.com/eth",
"https://cloudflare-eth.com",
"https://ethereum.publicnode.com",
"wss://ethereum.publicnode.com",
"https://mainnet.gateway.tenderly.co",
"wss://mainnet.gateway.tenderly.co"
],
+1
View File
@@ -8,6 +8,7 @@ export default {
"https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}",
"https://mainnet.optimism.io",
"https://optimism.publicnode.com",
"wss://optimism.publicnode.com",
"https://optimism.gateway.tenderly.co",
"wss://optimism.gateway.tenderly.co"
],
+28
View File
@@ -0,0 +1,28 @@
import type { Chain } from "../src/types";
export default {
"name": "Tectum Emission Token",
"chain": "TET",
"rpc": [
"https://tectum-emission-token.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.softnote.com/"
],
"faucets": [],
"nativeCurrency": {
"name": "Tectum",
"symbol": "TET",
"decimals": 8
},
"infoURL": "https://softnote.com",
"shortName": "tet",
"chainId": 1003,
"networkId": 1003,
"explorers": [
{
"name": "Tectum explorer",
"url": "https://explorer.tectum.io",
"standard": "none"
}
],
"testnet": false,
"slug": "tectum-emission-token"
} as const satisfies Chain;
+6
View File
@@ -2,6 +2,12 @@ import type { Chain } from "../src/types";
export default {
"name": "Worldland Mainnet",
"chain": "Worldland",
"icon": {
"url": "ipfs://QmYZNTfK3byhgLsTjXP8vPubVHRz2CWsBrTJxZrQmKq6JZ",
"width": 3509,
"height": 2482,
"format": "png"
},
"rpc": [
"https://worldland.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://seoul.worldland.foundation"
+6
View File
@@ -2,6 +2,12 @@ import type { Chain } from "../src/types";
export default {
"name": "Worldland Testnet",
"chain": "Worldland",
"icon": {
"url": "ipfs://QmYZNTfK3byhgLsTjXP8vPubVHRz2CWsBrTJxZrQmKq6JZ",
"width": 3509,
"height": 2482,
"format": "png"
},
"rpc": [
"https://worldland-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://gwangju.worldland.foundation"
+1 -3
View File
@@ -8,9 +8,7 @@ export default {
"https://mainnet-rpc.thundertoken.net",
"https://mainnet-rpc.thundercore.io"
],
"faucets": [
"https://faucet.thundercore.com"
],
"faucets": [],
"nativeCurrency": {
"name": "ThunderCore Token",
"symbol": "TT",
+53
View File
@@ -0,0 +1,53 @@
import type { Chain } from "../src/types";
export default {
"name": "Humans.ai Mainnet",
"chain": "Humans",
"rpc": [
"https://humans-ai.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://jsonrpc.humans.nodestake.top",
"https://humans-mainnet-evm.itrocket.net:443",
"https://humans-evm-rpc.staketab.org:443",
"https://evm.humans.stakepool.dev.br",
"https://mainnet-humans-evm.konsortech.xyz",
"https://evm-rpc.mainnet.humans.zone"
],
"faucets": [],
"nativeCurrency": {
"name": "HEART",
"symbol": "HEART",
"decimals": 18
},
"features": [
{
"name": "EIP155"
},
{
"name": "EIP1559"
}
],
"infoURL": "https://humans.ai",
"shortName": "humans",
"chainId": 1089,
"networkId": 1089,
"icon": {
"url": "ipfs://QmU83haX3TNifDDjBx6RP6ByqES1Kg9VqeJC87X9ipKyCS",
"width": 386,
"height": 397,
"format": "png"
},
"explorers": [
{
"name": "explorer.guru",
"url": "https://humans.explorers.guru",
"icon": {
"url": "ipfs://QmU83haX3TNifDDjBx6RP6ByqES1Kg9VqeJC87X9ipKyCS",
"width": 386,
"height": 397,
"format": "png"
},
"standard": "none"
}
],
"testnet": false,
"slug": "humans-ai"
} as const satisfies Chain;
+34
View File
@@ -0,0 +1,34 @@
import type { Chain } from "../src/types";
export default {
"name": "Shibarium",
"chain": "Shibarium",
"icon": {
"url": "ipfs://QmYNVkoZgRjDBQzJz6kog9mA2yPzQFW2oSKvhnkwuBhLQE",
"width": 2000,
"height": 2000,
"format": "png"
},
"rpc": [
"https://shibarium.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://www.shibrpc.com"
],
"faucets": [],
"nativeCurrency": {
"name": "BONE Shibarium",
"symbol": "BONE",
"decimals": 18
},
"infoURL": "https://shibariumecosystem.com",
"shortName": "shibariumecosystem",
"chainId": 109,
"networkId": 109,
"explorers": [
{
"name": "shibariumscan",
"url": "https://www.shibariumscan.io",
"standard": "none"
}
],
"testnet": false,
"slug": "shibarium"
} as const satisfies Chain;
+40
View File
@@ -0,0 +1,40 @@
import type { Chain } from "../src/types";
export default {
"name": "BLXq Testnet",
"chain": "BLXQ",
"icon": {
"url": "ipfs://QmS9kDKr1rgcz5W55yCQVfFs1vRTCneaLHt1t9cBizpqpH",
"width": 1000,
"height": 1000,
"format": "png"
},
"rpc": [
"https://blxq-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://testnetq1.blx.org"
],
"faucets": [],
"nativeCurrency": {
"name": "BLXQ",
"symbol": "BLXQ",
"decimals": 18
},
"infoURL": "https://blx.org",
"shortName": "blxq",
"chainId": 1107,
"networkId": 1107,
"explorers": [
{
"name": "BLXq Explorer",
"url": "https://explorer.blx.org",
"icon": {
"url": "ipfs://QmS9kDKr1rgcz5W55yCQVfFs1vRTCneaLHt1t9cBizpqpH",
"width": 1000,
"height": 1000,
"format": "png"
},
"standard": "none"
}
],
"testnet": true,
"slug": "blxq-testnet"
} as const satisfies Chain;
+1 -3
View File
@@ -7,9 +7,7 @@ export default {
"https://mainnet-rpc.hashbit.org",
"https://rpc.hashbit.org"
],
"faucets": [
"https://free-online-app.com/faucet-for-eth-evm-chains/"
],
"faucets": [],
"nativeCurrency": {
"name": "HashBit Native Token",
"symbol": "HBIT",
+2 -1
View File
@@ -5,7 +5,8 @@ export default {
"rpc": [
"https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.eth.haqq.network",
"https://haqq-evm.publicnode.com"
"https://haqq-evm.publicnode.com",
"wss://haqq-evm.publicnode.com"
],
"faucets": [],
"nativeCurrency": {
+36
View File
@@ -0,0 +1,36 @@
import type { Chain } from "../src/types";
export default {
"name": "DeFiMetaChain",
"icon": {
"url": "ipfs://QmTFyaJFmkDQf35rVRzEf78nGThKAyUCW4BoRaKDi4nnV5",
"width": 720,
"height": 720,
"format": "png"
},
"chain": "DFI",
"rpc": [
"https://defimetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://testnet-dmc.mydefichain.com:20551"
],
"faucets": [
"http://tc04.mydefichain.com/faucet"
],
"nativeCurrency": {
"name": "DeFiChain Token",
"symbol": "DFI",
"decimals": 18
},
"infoURL": "https://defichain.com",
"shortName": "changi",
"chainId": 1133,
"networkId": 1133,
"explorers": [
{
"name": "MetaScan",
"url": "https://meta.defiscan.live",
"standard": "EIP3091"
}
],
"testnet": true,
"slug": "defimetachain"
} as const satisfies Chain;
+1 -3
View File
@@ -13,9 +13,7 @@ export default {
"wss://rcl-dataseed3.rclsidechain.com/v1/",
"wss://rcl-dataseed4.rclsidechain.com/v1/"
],
"faucets": [
"https://faucet.rclsidechain.com"
],
"faucets": [],
"nativeCurrency": {
"name": "Realchain",
"symbol": "REAL",
+1 -3
View File
@@ -7,9 +7,7 @@ export default {
"https://http-mainnet.hecochain.com",
"wss://ws-mainnet.hecochain.com"
],
"faucets": [
"https://free-online-app.com/faucet-for-eth-evm-chains/"
],
"faucets": [],
"nativeCurrency": {
"name": "Huobi ECO Chain Native Token",
"symbol": "HT",
+34
View File
@@ -0,0 +1,34 @@
import type { Chain } from "../src/types";
export default {
"name": "Quantum Chain Testnet",
"chain": "QNET",
"icon": {
"url": "ipfs://bafkreibwywok67uewqbtqdzgr7nlk3lvvg7hxmbgwtn7kdwxe34useucvm",
"width": 1024,
"height": 1024,
"format": "png"
},
"rpc": [
"https://quantum-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://testnet-rpc.quantumscan.org"
],
"faucets": [],
"nativeCurrency": {
"name": "Quantum Chain",
"symbol": "QNET",
"decimals": 18
},
"infoURL": "https://quantumnetwork.gg",
"shortName": "qnet",
"chainId": 12890,
"networkId": 12890,
"explorers": [
{
"name": "Quantum Scan Testnet",
"url": "https://testnet.quantumscan.org",
"standard": "EIP3091"
}
],
"testnet": true,
"slug": "quantum-chain-testnet"
} as const satisfies Chain;
+14 -12
View File
@@ -1,7 +1,7 @@
import type { Chain } from "../src/types";
export default {
"name": "Aitd Mainnet",
"chain": "AITD",
"name": "AIA Mainnet",
"chain": "AIA",
"icon": {
"url": "ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",
"width": 160,
@@ -9,27 +9,29 @@ export default {
"format": "png"
},
"rpc": [
"https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://walletrpc.aitd.io",
"https://node.aitd.io"
"https://aia.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://aia-dataseed1.aiachain.org",
"https://aia-dataseed2.aiachain.org",
"https://aia-dataseed3.aiachain.org",
"https://aia-dataseed4.aiachain.org"
],
"faucets": [],
"nativeCurrency": {
"name": "AITD Mainnet",
"symbol": "AITD",
"name": "AIA Mainnet",
"symbol": "AIA",
"decimals": 18
},
"infoURL": "https://www.aitd.io/",
"shortName": "aitd",
"infoURL": "https://aiachain.org/",
"shortName": "aia",
"chainId": 1319,
"networkId": 1319,
"explorers": [
{
"name": "AITD Chain Explorer Mainnet",
"url": "https://aitd-explorer-new.aitd.io",
"name": "AIA Chain Explorer Mainnet",
"url": "https://aiascan.com",
"standard": "EIP3091"
}
],
"testnet": false,
"slug": "aitd"
"slug": "aia"
} as const satisfies Chain;
+20 -12
View File
@@ -1,7 +1,7 @@
import type { Chain } from "../src/types";
export default {
"name": "Aitd Testnet",
"chain": "AITD",
"name": "AIA Testnet",
"chain": "AIA",
"icon": {
"url": "ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",
"width": 160,
@@ -9,28 +9,36 @@ export default {
"format": "png"
},
"rpc": [
"https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"http://http-testnet.aitd.io"
"https://aia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://aia-dataseed1-testnet.aiachain.org"
],
"faucets": [
"https://aitd-faucet-pre.aitdcoin.com/"
"https://aia-faucet-testnet.aiachain.org"
],
"nativeCurrency": {
"name": "AITD Testnet",
"symbol": "AITD",
"name": "AIA Testnet",
"symbol": "AIA",
"decimals": 18
},
"infoURL": "https://www.aitd.io/",
"shortName": "aitdtestnet",
"features": [
{
"name": "EIP155"
},
{
"name": "EIP1559"
}
],
"infoURL": "https://aiachain.org",
"shortName": "aiatestnet",
"chainId": 1320,
"networkId": 1320,
"explorers": [
{
"name": "AITD Chain Explorer Testnet",
"url": "https://block-explorer-testnet.aitd.io",
"name": "AIA Chain Explorer Testnet",
"url": "https://testnet.aiascan.com",
"standard": "EIP3091"
}
],
"testnet": true,
"slug": "aitd-testnet"
"slug": "aia-testnet"
} as const satisfies Chain;
+1
View File
@@ -19,6 +19,7 @@ export default {
"https://rpc-mainnet.matic.quiknode.pro",
"https://matic-mainnet-full-rpc.bwarelabs.com",
"https://polygon-bor.publicnode.com",
"wss://polygon-bor.publicnode.com",
"https://polygon.gateway.tenderly.co",
"wss://polygon.gateway.tenderly.co"
],
+2 -1
View File
@@ -12,7 +12,8 @@ export default {
"rpc": [
"https://tenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.tenet.org",
"https://tenet-evm.publicnode.com"
"https://tenet-evm.publicnode.com",
"wss://tenet-evm.publicnode.com"
],
"faucets": [],
"nativeCurrency": {
+42
View File
@@ -0,0 +1,42 @@
import type { Chain } from "../src/types";
export default {
"name": "Manta Pacific Mainnet",
"chain": "Manta Pacific",
"rpc": [
"https://manta-pacific.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://pacific-rpc.manta.network/http"
],
"faucets": [],
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"features": [
{
"name": "EIP155"
},
{
"name": "EIP1559"
}
],
"infoURL": "https://pacific-info.manta.network",
"shortName": "manta",
"chainId": 169,
"networkId": 169,
"icon": {
"url": "ipfs://QmTckcVTViRZ3NqT36MTt8AvgBSmudrbgU3pi8AaNtthoV",
"width": 834,
"height": 834,
"format": "png"
},
"explorers": [
{
"name": "manta-pacific Explorer",
"url": "https://pacific-explorer.manta.network",
"standard": "EIP3091"
}
],
"testnet": false,
"slug": "manta-pacific"
} as const satisfies Chain;
+40
View File
@@ -0,0 +1,40 @@
import type { Chain } from "../src/types";
export default {
"name": "SatoshIE",
"chain": "TUSHY",
"rpc": [
"https://satoshie.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"http://rpc.satosh.ie"
],
"faucets": [],
"nativeCurrency": {
"name": "Tushy Token",
"symbol": "TUSHY",
"decimals": 18
},
"infoURL": "https://satosh.ie",
"shortName": "satoshie",
"chainId": 1985,
"networkId": 1985,
"icon": {
"url": "ipfs://QmRHT4o9ihiY6nVkkRdwZjdugbEAQiXrrov3GS9a3GTuL7",
"width": 1024,
"height": 1024,
"format": "jpg"
},
"explorers": [
{
"name": "mainnetexplorer",
"url": "http://explore.satosh.ie",
"icon": {
"url": "ipfs://QmRHT4o9ihiY6nVkkRdwZjdugbEAQiXrrov3GS9a3GTuL7",
"width": 1024,
"height": 1024,
"format": "jpg"
},
"standard": "none"
}
],
"testnet": false,
"slug": "satoshie"
} as const satisfies Chain;
+40
View File
@@ -0,0 +1,40 @@
import type { Chain } from "../src/types";
export default {
"name": "SatoshIE Testnet",
"chain": "TUSHY",
"rpc": [
"https://satoshie-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"http://testnet.satosh.ie"
],
"faucets": [],
"nativeCurrency": {
"name": "Tushy Token",
"symbol": "TUSHY",
"decimals": 18
},
"infoURL": "https://satosh.ie",
"shortName": "satoshie_testnet",
"chainId": 1986,
"networkId": 1986,
"icon": {
"url": "ipfs://QmRHT4o9ihiY6nVkkRdwZjdugbEAQiXrrov3GS9a3GTuL7",
"width": 1024,
"height": 1024,
"format": "jpg"
},
"explorers": [
{
"name": "testnetexplorer",
"url": "http://explore-testnet.satosh.ie",
"icon": {
"url": "ipfs://QmRHT4o9ihiY6nVkkRdwZjdugbEAQiXrrov3GS9a3GTuL7",
"width": 1024,
"height": 1024,
"format": "jpg"
},
"standard": "none"
}
],
"testnet": true,
"slug": "satoshie-testnet"
} as const satisfies Chain;
+1 -3
View File
@@ -6,9 +6,7 @@ export default {
"https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://api.elastos.io/eth"
],
"faucets": [
"https://faucet.elastos.org/"
],
"faucets": [],
"nativeCurrency": {
"name": "Elastos",
"symbol": "ELA",
+11 -1
View File
@@ -5,7 +5,10 @@ export default {
"rpc": [
"https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://hz.rpc.qkiscan.cn",
"https://jp.rpc.qkiscan.io"
"https://jp.rpc.qkiscan.io",
"https://rpc1.qkiscan.io",
"https://rpc2.qkiscan.io",
"https://rpc3.qkiscan.io"
],
"faucets": [],
"nativeCurrency": {
@@ -17,6 +20,13 @@ export default {
"shortName": "qki",
"chainId": 20181205,
"networkId": 20181205,
"explorers": [
{
"name": "qkiscan",
"url": "https://qkiscan.io",
"standard": "EIP3091"
}
],
"testnet": false,
"slug": "quarkblockchain"
} as const satisfies Chain;
+1 -3
View File
@@ -6,9 +6,7 @@ export default {
"https://opbnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://opbnb-mainnet-rpc.bnbchain.org"
],
"faucets": [
"https://free-online-app.com/faucet-for-eth-evm-chains"
],
"faucets": [],
"nativeCurrency": {
"name": "BNB Chain Native Token",
"symbol": "BNB",
+2 -1
View File
@@ -10,7 +10,8 @@ export default {
"https://kava-evm.rpc.thirdweb.com",
"wss://wevm.kava.io",
"wss://wevm2.kava.io",
"https://kava-evm.publicnode.com"
"https://kava-evm.publicnode.com",
"wss://kava-evm.publicnode.com"
],
"faucets": [],
"nativeCurrency": {
+1 -4
View File
@@ -7,10 +7,7 @@ export default {
"https://rpc.energyweb.org",
"wss://rpc.energyweb.org/ws"
],
"faucets": [
"https://faucet.carbonswap.exchange",
"https://free-online-app.com/faucet-for-eth-evm-chains/"
],
"faucets": [],
"nativeCurrency": {
"name": "Energy Web Token",
"symbol": "EWT",
+2 -1
View File
@@ -5,7 +5,8 @@ export default {
"rpc": [
"https://cronos.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://evm.cronos.org",
"https://cronos-evm.publicnode.com"
"https://cronos-evm.publicnode.com",
"wss://cronos-evm.publicnode.com"
],
"features": [
{
+2 -3
View File
@@ -4,12 +4,11 @@ export default {
"chain": "FTM",
"rpc": [
"https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"wss://fantom.publicnode.com",
"https://fantom.publicnode.com",
"https://rpc.ftm.tools"
],
"faucets": [
"https://free-online-app.com/faucet-for-eth-evm-chains/"
],
"faucets": [],
"nativeCurrency": {
"name": "Fantom",
"symbol": "FTM",
+49
View File
@@ -0,0 +1,49 @@
import type { Chain } from "../src/types";
export default {
"name": "Kroma",
"chain": "ETH",
"rpc": [
"https://kroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://api.kroma.network"
],
"faucets": [],
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"infoURL": "https://kroma.network",
"icon": {
"url": "ipfs://QmVpV2WET6ZrqnvvPfE9hCwoE2y5ygbPuniuugpaRoxrho",
"width": 320,
"height": 320,
"format": "svg"
},
"shortName": "kroma",
"chainId": 255,
"networkId": 255,
"explorers": [
{
"name": "blockscout",
"url": "https://blockscout.kroma.network",
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
},
"standard": "EIP3091"
}
],
"parent": {
"type": "L2",
"chain": "eip155-1",
"bridges": [
{
"url": "https://kroma.network/bridge"
}
]
},
"testnet": false,
"slug": "kroma"
} as const satisfies Chain;
+1 -3
View File
@@ -7,9 +7,7 @@ export default {
"https://public-node.rsk.co",
"https://mycrypto.rsk.co"
],
"faucets": [
"https://faucet.rsk.co/"
],
"faucets": [],
"nativeCurrency": {
"name": "Smart Bitcoin",
"symbol": "RBTC",
+6
View File
@@ -2,6 +2,12 @@ import type { Chain } from "../src/types";
export default {
"name": "Canxium Mainnet",
"chain": "CAU",
"icon": {
"url": "ipfs://QmXHSbtVNCJVfe2CvRH7njdyf2SrX5u5bNTfvhqjLeFN2A",
"width": 938,
"height": 938,
"format": "png"
},
"rpc": [
"https://canxium.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.canxium.org"
+34
View File
@@ -0,0 +1,34 @@
import type { Chain } from "../src/types";
export default {
"name": "Cerium Testnet",
"chain": "CAU",
"icon": {
"url": "ipfs://QmXHSbtVNCJVfe2CvRH7njdyf2SrX5u5bNTfvhqjLeFN2A",
"width": 938,
"height": 938,
"format": "png"
},
"rpc": [
"https://cerium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://cerium-rpc.canxium.net"
],
"faucets": [],
"nativeCurrency": {
"name": "Canxium",
"symbol": "CAU",
"decimals": 18
},
"infoURL": "https://canxium.org",
"shortName": "ceri",
"chainId": 30103,
"networkId": 30103,
"explorers": [
{
"name": "canxium explorer",
"url": "https://cerium-explorer.canxium.net",
"standard": "none"
}
],
"testnet": true,
"slug": "cerium-testnet"
} as const satisfies Chain;
+45
View File
@@ -0,0 +1,45 @@
import type { Chain } from "../src/types";
export default {
"name": "Wyzth Testnet",
"chain": "WYZ",
"rpc": [
"https://wyzth-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-testnet3.wyzthchain.org/"
],
"faucets": [],
"nativeCurrency": {
"name": "Wyzth",
"symbol": "WYZ",
"decimals": 18
},
"features": [
{
"name": "EIP155"
}
],
"infoURL": "https://wyzth.org/",
"shortName": "wyz",
"chainId": 309,
"networkId": 309,
"icon": {
"url": "ipfs://QmeDfLgA5heAAXsU8kf5J23Y8up4uHN27uRBEAJFPMJEu7",
"width": 48,
"height": 48,
"format": "png"
},
"explorers": [
{
"name": "wyzth",
"url": "http://24.199.108.65:4000",
"icon": {
"url": "ipfs://QmT5UMzAftM4mHCtk4pWX4sqyJCki88APbqECywrhJp91Q",
"width": 324,
"height": 82,
"format": "png"
},
"standard": "EIP3091"
}
],
"testnet": true,
"slug": "wyzth-testnet"
} as const satisfies Chain;
+1 -4
View File
@@ -8,10 +8,7 @@ export default {
"https://kcc.mytokenpocket.vip",
"https://public-rpc.blockpi.io/http/kcc"
],
"faucets": [
"https://faucet.kcc.io/",
"https://free-online-app.com/faucet-for-eth-evm-chains/"
],
"faucets": [],
"nativeCurrency": {
"name": "KuCoin Token",
"symbol": "KCS",
+22 -2
View File
@@ -10,8 +10,10 @@ export default {
"https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.pulsechain.com",
"wss://rpc.pulsechain.com",
"https://pulsechain.publicnode.com"
"https://pulsechain.publicnode.com",
"wss://pulsechain.publicnode.com"
],
"slip44": 60,
"features": [
{
"name": "EIP155"
@@ -24,12 +26,30 @@ export default {
"ens": {
"registry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
},
"status": "incubating",
"status": "active",
"nativeCurrency": {
"name": "Pulse",
"symbol": "PLS",
"decimals": 18
},
"explorers": [
{
"name": "blockscout",
"url": "https://scan.pulsechain.com",
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
},
"standard": "EIP3091"
},
{
"name": "otterscan",
"url": "https://otter.pulsechain.com",
"standard": "EIP3091"
}
],
"testnet": false,
"slug": "pulsechain"
} as const satisfies Chain;
-39
View File
@@ -1,39 +0,0 @@
import type { Chain } from "../src/types";
export default {
"name": "Xpla Testnet",
"chain": "XPLATest",
"rpc": [
"https://xpla-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://dimension-rpc.xpla.dev"
],
"faucets": [
"https://faucet.xpla.io"
],
"nativeCurrency": {
"name": "XPLA",
"symbol": "XPLA",
"decimals": 18
},
"infoURL": "https://xpla.io",
"shortName": "xplatest",
"chainId": 3701,
"networkId": 3701,
"icon": {
"url": "ipfs://Qmf4GoxfpeA5VGqu7KP5eyv1WKaCpNDbvMxq1MjQBwFWxq",
"width": 512,
"height": 512,
"format": "png"
},
"explorers": [
{
"name": "XPLA Explorer",
"url": "https://explorer.xpla.io",
"standard": "none"
}
],
"redFlags": [
"reusedChainId"
],
"testnet": true,
"slug": "xpla-testnet"
} as const satisfies Chain;
+1
View File
@@ -4,6 +4,7 @@ export default {
"chain": "FTM",
"rpc": [
"https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"wss://fantom-testnet.publicnode.com",
"https://fantom-testnet.publicnode.com",
"https://rpc.testnet.fantom.network"
],
+1
View File
@@ -8,6 +8,7 @@ export default {
"https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}",
"https://goerli.optimism.io",
"https://optimism-goerli.publicnode.com",
"wss://optimism-goerli.publicnode.com",
"https://optimism-goerli.gateway.tenderly.co",
"wss://optimism-goerli.gateway.tenderly.co"
],
+2 -1
View File
@@ -15,7 +15,8 @@ export default {
"https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}",
"https://arb1.arbitrum.io/rpc",
"https://arbitrum-one.publicnode.com"
"https://arbitrum-one.publicnode.com",
"wss://arbitrum-one.publicnode.com"
],
"faucets": [],
"explorers": [
+2 -1
View File
@@ -16,7 +16,8 @@ export default {
"https://arbitrum-goerli.infura.io/v3/${INFURA_API_KEY}",
"https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}",
"https://goerli-rollup.arbitrum.io/rpc",
"https://arbitrum-goerli.publicnode.com"
"https://arbitrum-goerli.publicnode.com",
"wss://arbitrum-goerli.publicnode.com"
],
"faucets": [],
"infoURL": "https://arbitrum.io/",
+38
View File
@@ -0,0 +1,38 @@
import type { Chain } from "../src/types";
export default {
"name": "Arbitrum Sepolia",
"title": "Arbitrum Sepolia Rollup Testnet",
"chain": "ETH",
"rpc": [
"https://arbitrum-sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://sepolia-rollup.arbitrum.io/rpc"
],
"faucets": [],
"nativeCurrency": {
"name": "Sepolia Ether",
"symbol": "ETH",
"decimals": 18
},
"infoURL": "https://arbitrum.io",
"shortName": "arb-sep",
"chainId": 421614,
"networkId": 421614,
"explorers": [
{
"name": "Arbitrum Sepolia Rollup Testnet Explorer",
"url": "https://sepolia-explorer.arbitrum.io",
"standard": "EIP3091"
}
],
"parent": {
"type": "L2",
"chain": "eip155-11155111",
"bridges": [
{
"url": "https://bridge.arbitrum.io"
}
]
},
"testnet": true,
"slug": "arbitrum-sepolia"
} as const satisfies Chain;
+2 -1
View File
@@ -13,7 +13,8 @@ export default {
"rpc": [
"https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://nova.arbitrum.io/rpc",
"https://arbitrum-nova.publicnode.com"
"https://arbitrum-nova.publicnode.com",
"wss://arbitrum-nova.publicnode.com"
],
"faucets": [],
"explorers": [
+1 -3
View File
@@ -15,9 +15,7 @@ export default {
"https://forno.celo.org",
"wss://forno.celo.org/ws"
],
"faucets": [
"https://free-online-app.com/faucet-for-eth-evm-chains/"
],
"faucets": [],
"infoURL": "https://docs.celo.org/",
"explorers": [
{
+1 -1
View File
@@ -7,7 +7,7 @@ export default {
"https://pangolin-rpc.darwinia.network"
],
"faucets": [
"https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"
"https://docs.darwinia.network/pangolin-testnet-1e9ac8b09e874e8abd6a7f18c096ca6a"
],
"nativeCurrency": {
"name": "Pangolin Network Native Token",
+2 -1
View File
@@ -12,7 +12,8 @@ export default {
"https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}",
"https://api.avax-test.network/ext/bc/C/rpc",
"https://avalanche-fuji-c-chain.publicnode.com"
"https://avalanche-fuji-c-chain.publicnode.com",
"wss://avalanche-fuji-c-chain.publicnode.com"
],
"faucets": [
"https://faucet.avax.network/",
+3 -4
View File
@@ -12,16 +12,15 @@ export default {
"https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.avax.network/ext/bc/C/rpc",
"https://avalanche-c-chain.publicnode.com"
"https://avalanche-c-chain.publicnode.com",
"wss://avalanche-c-chain.publicnode.com"
],
"features": [
{
"name": "EIP1559"
}
],
"faucets": [
"https://free-online-app.com/faucet-for-eth-evm-chains/"
],
"faucets": [],
"nativeCurrency": {
"name": "Avalanche",
"symbol": "AVAX",
+7 -4
View File
@@ -1,10 +1,13 @@
import type { Chain } from "../src/types";
export default {
"name": "Darwinia Crab Network",
"name": "Crab Network",
"chain": "crab",
"rpc": [
"https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://crab-rpc.darwinia.network"
"https://crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://crab-rpc.darwinia.network",
"https://crab-rpc.darwiniacommunitydao.xyz",
"https://crab.api.onfinality.io/public-ws",
"https://darwiniacrab-rpc.dwellir.com"
],
"faucets": [],
"nativeCurrency": {
@@ -24,5 +27,5 @@ export default {
}
],
"testnet": false,
"slug": "darwinia-crab-network"
"slug": "crab-network"
} as const satisfies Chain;
+24 -23
View File
@@ -1,40 +1,41 @@
import type { Chain } from "../src/types";
export default {
"name": "Frenchain Testnet",
"chain": "tfren",
"name": "Synapse Chain Testnet",
"status": "active",
"chain": "ETH",
"rpc": [
"https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-01tn.frenchain.app"
"https://synapse-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://sepolia.synapseprotocol.com"
],
"faucets": [],
"nativeCurrency": {
"name": "tFREN",
"symbol": "FtREN",
"name": "Sepolia ETH",
"symbol": "ETH",
"decimals": 18
},
"infoURL": "https://frenchain.app",
"shortName": "tFREN",
"infoURL": "https://synapseprotocol.com",
"shortName": "synapse-sepolia",
"chainId": 444,
"networkId": 444,
"icon": {
"url": "ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",
"width": 128,
"height": 128,
"format": "png"
},
"redFlags": [
"reusedChainId"
],
"explorers": [
{
"name": "blockscout",
"url": "https://testnet.frenscan.io",
"icon": {
"url": "ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",
"width": 128,
"height": 128,
"format": "png"
},
"name": "Synapse Chain Sepolia",
"url": "https://sepolia.synapsescan.com",
"standard": "EIP3091"
}
],
"parent": {
"type": "L2",
"chain": "eip155-11155111",
"bridges": [
{
"url": "https://docs.synapseprotocol.com/synapse-chain/using-synapse-chain/bridging-to-synapse-chain"
}
]
},
"testnet": true,
"slug": "frenchain-testnet"
"slug": "synapse-chain-testnet"
} as const satisfies Chain;
+3 -1
View File
@@ -6,7 +6,9 @@ export default {
"https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://pangoro-rpc.darwinia.network"
],
"faucets": [],
"faucets": [
"https://docs.darwinia.network/pangoro-testnet-70cfec5dc9ca42759959ba3803edaec2"
],
"nativeCurrency": {
"name": "Pangoro Network Native Token",
"symbol": "ORING",
+4 -1
View File
@@ -4,7 +4,10 @@ export default {
"chain": "darwinia",
"rpc": [
"https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.darwinia.network"
"https://rpc.darwinia.network",
"https://darwinia-rpc.darwiniacommunitydao.xyz",
"https://darwinia2.api.onfinality.io/public-ws",
"https://darwinia-rpc.dwellir.com"
],
"faucets": [],
"nativeCurrency": {
+34
View File
@@ -0,0 +1,34 @@
import type { Chain } from "../src/types";
export default {
"name": "Areon Network Testnet",
"chain": "Areon",
"icon": {
"url": "ipfs://bafkreihs2nrnizpcuzjmuu2yi7wrtwd7qlqje46qnil5bnntfbfkb2roea",
"width": 1000,
"height": 1000,
"format": "png"
},
"rpc": [
"https://areon-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://testnet-rpc.areon.network"
],
"faucets": [],
"nativeCurrency": {
"name": "Areon",
"symbol": "AREA",
"decimals": 18
},
"infoURL": "https://areon.network",
"shortName": "area",
"chainId": 462,
"networkId": 462,
"explorers": [
{
"name": "AreonScan",
"url": "https://areonscan.com",
"standard": "none"
}
],
"testnet": true,
"slug": "areon-network-testnet"
} as const satisfies Chain;
+2 -2
View File
@@ -3,7 +3,7 @@ export default {
"name": "Xpla Testnet",
"chain": "XPLA",
"rpc": [
"https://xpla-testnet-xpla-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://xpla-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://cube-evm-rpc.xpla.dev"
],
"nativeCurrency": {
@@ -34,5 +34,5 @@ export default {
"redFlags": [
"reusedChainId"
],
"slug": "xpla-testnet-xpla-test"
"slug": "xpla-testnet"
} as const satisfies Chain;
+1
View File
@@ -10,6 +10,7 @@ export default {
"https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}",
"https://rpc.goerli.mudit.blog/",
"https://ethereum-goerli.publicnode.com",
"wss://ethereum-goerli.publicnode.com",
"https://goerli.gateway.tenderly.co",
"wss://goerli.gateway.tenderly.co"
],
+2 -1
View File
@@ -11,7 +11,8 @@ export default {
"rpc": [
"https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.mantle.xyz",
"https://mantle.publicnode.com"
"https://mantle.publicnode.com",
"wss://mantle.publicnode.com"
],
"faucets": [],
"nativeCurrency": {
+1 -1
View File
@@ -5,7 +5,7 @@ export default {
"rpc": [
"https://titan.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.titan.tokamak.network",
"wss://rpc.titan.tokamak.network/ws"
"wss://rpc.titan.tokamak.network"
],
"faucets": [],
"nativeCurrency": {
+2 -3
View File
@@ -5,6 +5,7 @@ export default {
"rpc": [
"https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"wss://bsc-ws-node.nariox.org",
"wss://bsc.publicnode.com",
"https://bsc.publicnode.com",
"https://bsc-dataseed4.ninicoin.io",
"https://bsc-dataseed3.ninicoin.io",
@@ -19,9 +20,7 @@ export default {
"https://bsc-dataseed2.bnbchain.org",
"https://bsc-dataseed1.bnbchain.org"
],
"faucets": [
"https://free-online-app.com/faucet-for-eth-evm-chains/"
],
"faucets": [],
"nativeCurrency": {
"name": "BNB Chain Native Token",
"symbol": "BNB",
+2 -1
View File
@@ -8,7 +8,8 @@ export default {
"https://rpc.ankr.com/syscoin/${ANKR_API_KEY}",
"https://syscoin.public-rpc.com",
"wss://rpc.syscoin.org/wss",
"https://syscoin-evm.publicnode.com"
"https://syscoin-evm.publicnode.com",
"wss://syscoin-evm.publicnode.com"
],
"faucets": [
"https://faucet.syscoin.org"
+2 -1
View File
@@ -6,7 +6,8 @@ export default {
"https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.tanenbaum.io",
"wss://rpc.tanenbaum.io/wss",
"https://syscoin-tanenbaum-evm.publicnode.com"
"https://syscoin-tanenbaum-evm.publicnode.com",
"wss://syscoin-tanenbaum-evm.publicnode.com"
],
"faucets": [
"https://faucet.tanenbaum.io"
-21
View File
@@ -1,21 +0,0 @@
import type { Chain } from "../src/types";
export default {
"name": "Ethereum Classic Testnet Kotti",
"chain": "ETC",
"rpc": [
"https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://www.ethercluster.com/kotti"
],
"faucets": [],
"nativeCurrency": {
"name": "Kotti Ether",
"symbol": "KOT",
"decimals": 18
},
"infoURL": "https://explorer.jade.builders/?network=kotti",
"shortName": "kot",
"chainId": 6,
"networkId": 6,
"testnet": true,
"slug": "ethereum-classic-testnet-kotti"
} as const satisfies Chain;
+1 -3
View File
@@ -6,9 +6,7 @@ export default {
"https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.gochain.io"
],
"faucets": [
"https://free-online-app.com/faucet-for-eth-evm-chains/"
],
"faucets": [],
"nativeCurrency": {
"name": "GoChain Ether",
"symbol": "GO",
+9 -4
View File
@@ -4,11 +4,16 @@ export default {
"chain": "ETC",
"rpc": [
"https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://etc.rivet.link"
"https://etc.rivet.link",
"https://etc.etcdesktop.com",
"https://etc.mytokenpocket.vip"
],
"faucets": [
"https://free-online-app.com/faucet-for-eth-evm-chains/?"
"features": [
{
"name": "EIP155"
}
],
"faucets": [],
"nativeCurrency": {
"name": "Ethereum Classic Ether",
"symbol": "ETC",
@@ -23,7 +28,7 @@ export default {
{
"name": "blockscout",
"url": "https://blockscout.com/etc/mainnet",
"standard": "none"
"standard": "EIP3091"
}
],
"testnet": false,
+17 -1
View File
@@ -6,7 +6,15 @@ export default {
"https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.mordor.etccooperative.org"
],
"faucets": [],
"features": [
{
"name": "EIP155"
}
],
"faucets": [
"https://mordor.canhaz.net/",
"https://easy.hebeswap.com/#/faucet"
],
"nativeCurrency": {
"name": "Mordor Classic Testnet Ether",
"symbol": "METC",
@@ -16,6 +24,14 @@ export default {
"shortName": "metc",
"chainId": 63,
"networkId": 7,
"slip44": 63,
"explorers": [
{
"name": "blockscout",
"url": "https://blockscout.com/etc/mordor",
"standard": "EIP3091"
}
],
"testnet": true,
"slug": "ethereum-classic-testnet-mordor"
} as const satisfies Chain;
+1 -3
View File
@@ -7,9 +7,7 @@ export default {
"https://exchainrpc.okex.org",
"https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"
],
"faucets": [
"https://free-online-app.com/faucet-for-eth-evm-chains/?"
],
"faucets": [],
"nativeCurrency": {
"name": "OKXChain Global Utility Token",
"symbol": "OKT",
+2 -1
View File
@@ -5,7 +5,8 @@ export default {
"rpc": [
"https://irishub.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://evmrpc.irishub-1.irisnet.org",
"https://iris-evm.publicnode.com"
"https://iris-evm.publicnode.com",
"wss://iris-evm.publicnode.com"
],
"features": [
{
+7 -13
View File
@@ -1,9 +1,9 @@
import type { Chain } from "../src/types";
export default {
"name": "JuncaGlobal Chain Testnet",
"chain": "JuncaGlobal Test Chain",
"name": "JuncaChain testnet",
"chain": "JuncaChain testnet",
"rpc": [
"https://juncaglobal-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://juncachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-testnet.juncachain.com",
"wss://ws-testnet.juncachain.com"
],
@@ -11,27 +11,21 @@ export default {
"https://faucet-testnet.juncachain.com"
],
"nativeCurrency": {
"name": "JuncaGlobal Chain Testnet Native Token",
"name": "JuncaChain Testnet Native Token",
"symbol": "JGCT",
"decimals": 18
},
"infoURL": "https://junca-cash.world",
"shortName": "junca",
"shortName": "juncat",
"chainId": 669,
"networkId": 669,
"explorers": [
{
"name": "blockscout",
"name": "JuncaScan",
"url": "https://scan-testnet.juncachain.com",
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
},
"standard": "EIP3091"
}
],
"testnet": true,
"slug": "juncaglobal-chain-testnet"
"slug": "juncachain-testnet"
} as const satisfies Chain;
+1 -3
View File
@@ -8,9 +8,7 @@ export default {
"wss://sokol.poa.network/wss",
"ws://sokol.poa.network:8546"
],
"faucets": [
"https://faucet.poa.network"
],
"faucets": [],
"nativeCurrency": {
"name": "POA Sokol Ether",
"symbol": "SPOA",
+4 -4
View File
@@ -1,6 +1,6 @@
import type { Chain } from "../src/types";
export default {
"name": "MAAL Sharia Chain",
"name": "MAAL Chain",
"chain": "MAAL",
"icon": {
"url": "ipfs://bafkreiexfqfe2x4impvwhra3xxa5eb25gv25zi3kkaoatdnld7wbxdzf2a",
@@ -9,7 +9,7 @@ export default {
"format": "png"
},
"rpc": [
"https://maal-sharia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://maal-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://node1-mainnet.maalscan.io/",
"https://node2-mainnet.maalscan.io/",
"https://node3-mainnet.maalscan.io/"
@@ -20,7 +20,7 @@ export default {
"symbol": "MAAL",
"decimals": 18
},
"infoURL": "https://www.maalblockchain.com/",
"infoURL": "https://www.maalchain.com/",
"shortName": "maal",
"chainId": 786,
"networkId": 786,
@@ -32,5 +32,5 @@ export default {
}
],
"testnet": false,
"slug": "maal-sharia-chain"
"slug": "maal-chain"
} as const satisfies Chain;
+1 -2
View File
@@ -13,10 +13,9 @@ export default {
"https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}",
"https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}",
"https://matic-mumbai.chainstacklabs.com",
"https://rpc-mumbai.maticvigil.com",
"https://matic-testnet-archive-rpc.bwarelabs.com",
"https://polygon-mumbai-bor.publicnode.com",
"wss://polygon-mumbai-bor.publicnode.com",
"https://polygon-mumbai.gateway.tenderly.co",
"wss://polygon-mumbai.gateway.tenderly.co"
],
+2 -1
View File
@@ -8,7 +8,8 @@ export default {
"https://developer-access-mainnet.base.org/",
"https://base.gateway.tenderly.co",
"wss://base.gateway.tenderly.co",
"https://base.publicnode.com"
"https://base.publicnode.com",
"wss://base.publicnode.com"
],
"faucets": [],
"nativeCurrency": {
+1
View File
@@ -4,6 +4,7 @@ export default {
"chain": "ETH",
"rpc": [
"https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"wss://base-goerli.publicnode.com",
"https://base-goerli.publicnode.com",
"wss://base-goerli.gateway.tenderly.co",
"https://base-goerli.gateway.tenderly.co",
+1 -3
View File
@@ -7,9 +7,7 @@ export default {
"https://api.posichain.org",
"https://api.s0.posichain.org"
],
"faucets": [
"https://faucet.posichain.org/"
],
"faucets": [],
"nativeCurrency": {
"name": "Posichain Native Token",
"symbol": "POSI",
+2 -1
View File
@@ -4,7 +4,8 @@ export default {
"chain": "Evmos",
"rpc": [
"https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://evmos-evm.publicnode.com"
"https://evmos-evm.publicnode.com",
"wss://evmos-evm.publicnode.com"
],
"faucets": [],
"nativeCurrency": {
+3 -3
View File
@@ -1,6 +1,6 @@
import type { Chain } from "../src/types";
export default {
"name": "Nautilus Chain",
"name": "Nautilus Trition Chain",
"title": "Nautilus Trition Testnet",
"chain": "ETH",
"icon": {
@@ -10,7 +10,7 @@ export default {
"format": "png"
},
"rpc": [
"https://nautilus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://nautilus-trition-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://triton.api.nautchain.xyz"
],
"faucets": [
@@ -33,5 +33,5 @@ export default {
}
],
"testnet": true,
"slug": "nautilus-chain"
"slug": "nautilus-trition-chain"
} as const satisfies Chain;
+34
View File
@@ -0,0 +1,34 @@
import type { Chain } from "../src/types";
export default {
"name": "Yidark Chain Mainnet",
"chain": "Yidark",
"icon": {
"url": "ipfs://QmdbFGqrpiLQGtAeUAyeS2NBvACfgrchEF466ni5q36fuZ",
"width": 401,
"height": 401,
"format": "png"
},
"rpc": [
"https://yidark-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.yidark.io"
],
"faucets": [],
"nativeCurrency": {
"name": "Yidark",
"symbol": "YDK",
"decimals": 18
},
"infoURL": "https://yidarkscan.com",
"shortName": "ydk",
"chainId": 927,
"networkId": 927,
"explorers": [
{
"name": "Yidarkscan",
"url": "https://yidarkscan.com",
"standard": "EIP3091"
}
],
"testnet": false,
"slug": "yidark-chain"
} as const satisfies Chain;
-24
View File
@@ -1,24 +0,0 @@
import type { Chain } from "../src/types";
export default {
"name": "PulseChain Testnet v3",
"shortName": "t3pls",
"chain": "t3PLS",
"chainId": 942,
"networkId": 942,
"infoURL": "https://pulsechain.com/",
"rpc": [
"https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.v3.testnet.pulsechain.com/",
"wss://rpc.v3.testnet.pulsechain.com/"
],
"faucets": [
"https://faucet.v3.testnet.pulsechain.com/"
],
"nativeCurrency": {
"name": "Test Pulse",
"symbol": "tPLS",
"decimals": 18
},
"testnet": true,
"slug": "pulsechain-testnet-v3"
} as const satisfies Chain;
+17 -3
View File
@@ -16,7 +16,8 @@ export default {
"https://pulsechain-testnet-v4.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.v4.testnet.pulsechain.com/",
"wss://rpc.v4.testnet.pulsechain.com/",
"https://pulsechain-testnet.publicnode.com"
"https://pulsechain-testnet.publicnode.com",
"wss://pulsechain-testnet.publicnode.com"
],
"features": [
{
@@ -32,13 +33,26 @@ export default {
"ens": {
"registry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
},
"status": "incubating",
"explorers": [],
"status": "active",
"slip44": 60,
"nativeCurrency": {
"name": "Test Pulse",
"symbol": "tPLS",
"decimals": 18
},
"explorers": [
{
"name": "blockscout",
"url": "https://scan.v4.testnet.pulsechain.com",
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
},
"standard": "EIP3091"
}
],
"testnet": true,
"slug": "pulsechain-testnet-v4"
} as const satisfies Chain;
+1
View File
@@ -4,6 +4,7 @@ export default {
"chain": "BSC",
"rpc": [
"https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"wss://bsc-testnet.publicnode.com",
"https://bsc-testnet.publicnode.com",
"https://data-seed-prebsc-2-s3.bnbchain.org:8545",
"https://data-seed-prebsc-1-s3.bnbchain.org:8545",
+1 -1
View File
@@ -21,7 +21,7 @@ export default {
"symbol": "tMIND",
"decimals": 18
},
"infoURL": "https://mindscan.info",
"infoURL": "https://mindchain.info",
"shortName": "tMIND",
"chainId": 9977,
"networkId": 9977,
+34
View File
@@ -0,0 +1,34 @@
import type { Chain } from "../src/types";
export default {
"name": "Agung Network",
"chain": "Agung",
"icon": {
"url": "ipfs://bafkreih6nzctk6brx5cqkylxbhvi3vsr6q5ks4th5knolkrlfp4tdia2mu",
"width": 400,
"height": 400,
"format": "svg"
},
"rpc": [
"https://agung-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpcpc1-qa.agung.peaq.network"
],
"faucets": [],
"nativeCurrency": {
"name": "Agung",
"symbol": "AGNG",
"decimals": 18
},
"infoURL": "https://www.peaq.network",
"shortName": "AGNG",
"chainId": 9990,
"networkId": 9990,
"explorers": [
{
"name": "Polkadot.js",
"url": "https://polkadot.js.org/apps/?rpc=wss://wsspc1-qa.agung.peaq.network#/explorer",
"standard": "none"
}
],
"testnet": false,
"slug": "agung-network"
} as const satisfies Chain;
+1 -1
View File
@@ -20,7 +20,7 @@ export default {
"symbol": "MIND",
"decimals": 18
},
"infoURL": "https://mindscan.info",
"infoURL": "https://mindchain.info",
"shortName": "MIND",
"chainId": 9996,
"networkId": 9996,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/chains",
"version": "0.1.50",
"version": "0.1.51",
"main": "dist/thirdweb-dev-chains.cjs.js",
"module": "dist/thirdweb-dev-chains.esm.js",
"browser": {
File diff suppressed because one or more lines are too long
+1
View File
@@ -46,6 +46,7 @@ const CHAIN_RPC_TEST_CASES: [ChainRPCOptions, string[]][] = [
{ mode: "ws", infuraApiKey: "SAMPLE_KEY" },
[
"wss://mainnet.infura.io/ws/v3/SAMPLE_KEY",
"wss://ethereum.publicnode.com",
"wss://mainnet.gateway.tenderly.co",
],
],
+10
View File
@@ -1,5 +1,15 @@
# thirdweb
## 0.12.3
### Patch Changes
- Updated dependencies [[`c0070c2c`](https://github.com/thirdweb-dev/js/commit/c0070c2cc08f23ffe50991d9d3090fcdcd1e720c), [`f55fd291`](https://github.com/thirdweb-dev/js/commit/f55fd291bf751c44608dd9ef6b3a29fb36c2de93), [`2a873d2f`](https://github.com/thirdweb-dev/js/commit/2a873d2f80271208819bac88b32cea0b48761c8d), [`d50863f4`](https://github.com/thirdweb-dev/js/commit/d50863f455ffbfd433924da8fe94394c42408bdc), [`f9042765`](https://github.com/thirdweb-dev/js/commit/f90427650c037b2c437685734ddc3398ad3e2612), [`6df24a2e`](https://github.com/thirdweb-dev/js/commit/6df24a2eb9b922a31bdcb0ccb260d99bdcbb1f17), [`8b73abfd`](https://github.com/thirdweb-dev/js/commit/8b73abfd83c7a8235f5d65f07dc3ad1296b40ae0), [`3056c34c`](https://github.com/thirdweb-dev/js/commit/3056c34c646e1a8c80f1323899c163e0fa867fd1), [`defe5fce`](https://github.com/thirdweb-dev/js/commit/defe5fced3fd738157616a9f1644c5092dcaa5a8), [`2f187d13`](https://github.com/thirdweb-dev/js/commit/2f187d13754f571b7205fc1b743efde767b1b1c8), [`7e564163`](https://github.com/thirdweb-dev/js/commit/7e564163cef43f9196250156373de9bf9fdbf334), [`931ee793`](https://github.com/thirdweb-dev/js/commit/931ee7930f16c25e4d775d2d93538a5cfe770353)]:
- @thirdweb-dev/sdk@3.10.60
- @thirdweb-dev/wallets@1.2.0
- @thirdweb-dev/chains@0.1.51
- @thirdweb-dev/auth@3.2.41
## 0.12.2
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "thirdweb",
"main": "dist/cli/index.js",
"version": "0.12.2",
"version": "0.12.3",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+8
View File
@@ -1,5 +1,13 @@
# @thirdweb-dev/contracts-js
## 1.3.13
### Patch Changes
- [#1591](https://github.com/thirdweb-dev/js/pull/1591) [`d50863f4`](https://github.com/thirdweb-dev/js/commit/d50863f455ffbfd433924da8fe94394c42408bdc) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Update airdrop function names on contracts and sdk to resolve abi conflict
- [#1607](https://github.com/thirdweb-dev/js/pull/1607) [`8b73abfd`](https://github.com/thirdweb-dev/js/commit/8b73abfd83c7a8235f5d65f07dc3ad1296b40ae0) Thanks [@nkrishang](https://github.com/nkrishang)! - Use IAccountFactoryCore
## 1.3.12
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/contracts-js",
"version": "1.3.12",
"version": "1.3.13",
"main": "dist/thirdweb-dev-contracts-js.cjs.js",
"module": "dist/thirdweb-dev-contracts-js.esm.js",
"browser": {
@@ -10,7 +10,7 @@
"license": "Apache-2.0",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/contracts-js",
"dependencies": {
"@thirdweb-dev/contracts": "3.9.3-0"
"@thirdweb-dev/contracts": "3.10.0"
},
"devDependencies": {
"@babel/preset-env": "^7.22.9",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-core
## 3.14.41
### Patch Changes
- Updated dependencies [[`c0070c2c`](https://github.com/thirdweb-dev/js/commit/c0070c2cc08f23ffe50991d9d3090fcdcd1e720c), [`f55fd291`](https://github.com/thirdweb-dev/js/commit/f55fd291bf751c44608dd9ef6b3a29fb36c2de93), [`2a873d2f`](https://github.com/thirdweb-dev/js/commit/2a873d2f80271208819bac88b32cea0b48761c8d), [`d50863f4`](https://github.com/thirdweb-dev/js/commit/d50863f455ffbfd433924da8fe94394c42408bdc), [`f9042765`](https://github.com/thirdweb-dev/js/commit/f90427650c037b2c437685734ddc3398ad3e2612), [`6df24a2e`](https://github.com/thirdweb-dev/js/commit/6df24a2eb9b922a31bdcb0ccb260d99bdcbb1f17), [`8b73abfd`](https://github.com/thirdweb-dev/js/commit/8b73abfd83c7a8235f5d65f07dc3ad1296b40ae0), [`3056c34c`](https://github.com/thirdweb-dev/js/commit/3056c34c646e1a8c80f1323899c163e0fa867fd1), [`defe5fce`](https://github.com/thirdweb-dev/js/commit/defe5fced3fd738157616a9f1644c5092dcaa5a8), [`2f187d13`](https://github.com/thirdweb-dev/js/commit/2f187d13754f571b7205fc1b743efde767b1b1c8), [`7e564163`](https://github.com/thirdweb-dev/js/commit/7e564163cef43f9196250156373de9bf9fdbf334), [`931ee793`](https://github.com/thirdweb-dev/js/commit/931ee7930f16c25e4d775d2d93538a5cfe770353)]:
- @thirdweb-dev/sdk@3.10.60
- @thirdweb-dev/wallets@1.2.0
- @thirdweb-dev/chains@0.1.51
- @thirdweb-dev/auth@3.2.41
## 3.14.40
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-core",
"version": "3.14.40",
"version": "3.14.41",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -1,5 +1,7 @@
# @thirdweb-dev/react-native-compat
## 0.2.60
## 0.2.59
## 0.2.58
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/react-native-compat",
"description": "Shims for Thirdweb in React Native Projects",
"version": "0.2.59",
"version": "0.2.60",
"author": "thirdweb eng <[email protected]>",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat",
"license": "Apache-2.0",
+4
View File
@@ -1,4 +1,8 @@
module.exports = {
root: true,
extends: ["thirdweb"],
settings: {
// https://github.com/facebook/react-native/issues/28549
"import/ignore": ["react-native"],
},
};
+22
View File
@@ -1,5 +1,27 @@
# @thirdweb-dev/react-native
## 0.2.60
### Patch Changes
- [#1590](https://github.com/thirdweb-dev/js/pull/1590) [`87ed24e1`](https://github.com/thirdweb-dev/js/commit/87ed24e1b40675f6e06e7ecde24fd14e24b802fd) Thanks [@iketw](https://github.com/iketw)! - Sets correct UI types for some React Native components
Type composition in some components was being done incorrectly, which made
types be `any`, which in turn hide some typescript issues easily recognizable
by our linter.
- [#1587](https://github.com/thirdweb-dev/js/pull/1587) [`4a7f41b3`](https://github.com/thirdweb-dev/js/commit/4a7f41b3ee15914000ea23c3136c24b26290e8dd) Thanks [@iketw](https://github.com/iketw)! - Remove signer from ThirdwebProvider as it is not being used
The idea of the React/RN ThirdwebProvider is to provider support for wallets. If devs want to pass their own signer they can directly use ThirdwebSDKProvider
- [#1605](https://github.com/thirdweb-dev/js/pull/1605) [`bb320c7e`](https://github.com/thirdweb-dev/js/commit/bb320c7e97fc6a10bbc0f32564d31f8bc8e564c6) Thanks [@iketw](https://github.com/iketw)! - Pass options to download an correctly pass clientId to RN storage.
- Updated dependencies [[`c0070c2c`](https://github.com/thirdweb-dev/js/commit/c0070c2cc08f23ffe50991d9d3090fcdcd1e720c), [`f55fd291`](https://github.com/thirdweb-dev/js/commit/f55fd291bf751c44608dd9ef6b3a29fb36c2de93), [`2a873d2f`](https://github.com/thirdweb-dev/js/commit/2a873d2f80271208819bac88b32cea0b48761c8d), [`d50863f4`](https://github.com/thirdweb-dev/js/commit/d50863f455ffbfd433924da8fe94394c42408bdc), [`f9042765`](https://github.com/thirdweb-dev/js/commit/f90427650c037b2c437685734ddc3398ad3e2612), [`6df24a2e`](https://github.com/thirdweb-dev/js/commit/6df24a2eb9b922a31bdcb0ccb260d99bdcbb1f17), [`8b73abfd`](https://github.com/thirdweb-dev/js/commit/8b73abfd83c7a8235f5d65f07dc3ad1296b40ae0), [`3056c34c`](https://github.com/thirdweb-dev/js/commit/3056c34c646e1a8c80f1323899c163e0fa867fd1), [`defe5fce`](https://github.com/thirdweb-dev/js/commit/defe5fced3fd738157616a9f1644c5092dcaa5a8), [`2f187d13`](https://github.com/thirdweb-dev/js/commit/2f187d13754f571b7205fc1b743efde767b1b1c8), [`7e564163`](https://github.com/thirdweb-dev/js/commit/7e564163cef43f9196250156373de9bf9fdbf334), [`931ee793`](https://github.com/thirdweb-dev/js/commit/931ee7930f16c25e4d775d2d93538a5cfe770353)]:
- @thirdweb-dev/sdk@3.10.60
- @thirdweb-dev/wallets@1.2.0
- @thirdweb-dev/chains@0.1.51
- @thirdweb-dev/react-core@3.14.41
## 0.2.59
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-native",
"version": "0.2.59",
"version": "0.2.60",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -12,7 +12,7 @@
],
"scripts": {
"typecheck": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"lint": "eslint src/ && tsc --noEmit",
"fix": "eslint src/ --fix",
"clean": "rm -rf dist/",
"build": "tsc",
@@ -10,6 +10,7 @@ import {
IThirdwebStorage,
IStorageDownloader,
StorageDownloader,
SingleDownloadOptions,
} from "@thirdweb-dev/storage";
import { prepareGatewayUrls } from "./utils";
@@ -22,6 +23,7 @@ export class ThirdwebStorage<T extends UploadOptions = IpfsUploadBatchOptions>
private uploader: IStorageUploader<T>;
private downloader: IStorageDownloader;
private gatewayUrls: GatewayUrls;
private clientId?: string;
constructor(options?: ThirdwebStorageOptions<T>) {
this.uploader =
@@ -38,6 +40,7 @@ export class ThirdwebStorage<T extends UploadOptions = IpfsUploadBatchOptions>
parseGatewayUrls(options?.gatewayUrls),
options?.clientId,
);
this.clientId = options?.clientId;
}
/**
@@ -54,7 +57,12 @@ export class ThirdwebStorage<T extends UploadOptions = IpfsUploadBatchOptions>
* ```
*/
resolveScheme(url: string): string {
return replaceSchemeWithGatewayUrl(url, this.gatewayUrls) as string;
return replaceSchemeWithGatewayUrl(
url,
this.gatewayUrls,
0,
this.clientId,
) as string;
}
/**
@@ -69,8 +77,11 @@ export class ThirdwebStorage<T extends UploadOptions = IpfsUploadBatchOptions>
* const data = await storage.download(uri);
* ```
*/
async download(url: string): Promise<Response> {
return this.downloader.download(url, this.gatewayUrls);
async download(
url: string,
options?: SingleDownloadOptions,
): Promise<Response> {
return this.downloader.download(url, this.gatewayUrls, options);
}
/**
@@ -86,12 +97,19 @@ export class ThirdwebStorage<T extends UploadOptions = IpfsUploadBatchOptions>
* const json = await storage.downloadJSON(uri);
* ```
*/
async downloadJSON<TJSON = any>(url: string): Promise<TJSON> {
const res = await this.download(url);
async downloadJSON<TJSON = any>(
url: string,
options?: SingleDownloadOptions,
): Promise<TJSON> {
const res = await this.download(url, options);
// If we get a JSON object, recursively replace any schemes with gatewayUrls
const json = await res.json();
return replaceObjectSchemesWithGatewayUrls(json, this.gatewayUrls) as TJSON;
return replaceObjectSchemesWithGatewayUrls(
json,
this.gatewayUrls,
this.clientId,
) as TJSON;
}
/**

Some files were not shown because too many files have changed in this diff Show More