Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1932d601c1 | ||
|
|
846a3503fe | ||
|
|
3e7f9cb946 | ||
|
|
83526c519a | ||
|
|
2e01627c99 |
@@ -1,5 +1,12 @@
|
||||
# @thirdweb-dev/auth
|
||||
|
||||
## 4.1.43
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies []:
|
||||
- @thirdweb-dev/wallets@2.4.21
|
||||
|
||||
## 4.1.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/auth",
|
||||
"version": "4.1.42",
|
||||
"version": "4.1.43",
|
||||
"main": "dist/thirdweb-dev-auth.cjs.js",
|
||||
"module": "dist/thirdweb-dev-auth.esm.js",
|
||||
"browser": {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @thirdweb-dev/chains
|
||||
|
||||
## 0.1.79
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2464](https://github.com/thirdweb-dev/js/pull/2464) [`2e01627`](https://github.com/thirdweb-dev/js/commit/2e01627c998a49a1dd41041f3743a28488c92697) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Sync chains
|
||||
|
||||
## 0.1.78
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 20519,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser4113 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser4113 Testnet Token",
|
||||
"symbol": "FYP",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 20519,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://20519.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser4113 Testnet",
|
||||
"slug": "qauser4113-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 29645,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser6355 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser6355 Testnet Token",
|
||||
"symbol": "MQO",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 29645,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://29645.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser6355 Testnet",
|
||||
"slug": "qauser6355-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -11,6 +11,7 @@ export default {
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"infoURL": "https://crossfi.org/",
|
||||
"name": "CrossFi Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "XFI",
|
||||
@@ -21,9 +22,10 @@ export default {
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://4157.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.testnet.ms/"
|
||||
"https://rpc.testnet.ms"
|
||||
],
|
||||
"shortName": "XFI",
|
||||
"slip44": 1,
|
||||
"slug": "crossfi-testnet",
|
||||
"testnet": true,
|
||||
"title": "https://scan.testnet.ms/"
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 45544,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser6609 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser6609 Testnet Token",
|
||||
"symbol": "NHU",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 45544,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://45544.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser6609 Testnet",
|
||||
"slug": "qauser6609-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 50528,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser9606 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser9606 Testnet Token",
|
||||
"symbol": "JTW",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 50528,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://50528.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser9606 Testnet",
|
||||
"slug": "qauser9606-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 59944,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser7920 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser7920 Testnet Token",
|
||||
"symbol": "USH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 59944,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://59944.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser7920 Testnet",
|
||||
"slug": "qauser7920-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 61258,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser7821 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser7821 Testnet Token",
|
||||
"symbol": "WND",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 61258,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://61258.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser7821 Testnet",
|
||||
"slug": "qauser7821-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,42 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "KEC",
|
||||
"chainId": 61406,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "KEC SCAN",
|
||||
"url": "https://explorer.kaichain.net/",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmbfRP2Ugo66pw6Mn8m9ChP4UE6Rn5nobtDo7Vy7ej93qA/kaichain%20icon.png",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmbfRP2Ugo66pw6Mn8m9ChP4UE6Rn5nobtDo7Vy7ej93qA/kaichain%20icon.png",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "http://kaichain.net/",
|
||||
"name": "Kaichain Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Kaichain",
|
||||
"symbol": "KEC",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 61406,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://61406.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://mainnet-rpc.kaichain.net"
|
||||
],
|
||||
"shortName": "Kaichain",
|
||||
"slug": "kaichain",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 64361,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser8734 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser8734 Testnet Token",
|
||||
"symbol": "XPI",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 64361,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://64361.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser8734 Testnet",
|
||||
"slug": "qauser8734-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 65842,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser4143 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser4143 Testnet Token",
|
||||
"symbol": "NHU",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 65842,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://65842.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser4143 Testnet",
|
||||
"slug": "qauser4143-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 66904,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser1335 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser1335 Testnet Token",
|
||||
"symbol": "KFZ",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 66904,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://66904.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser1335 Testnet",
|
||||
"slug": "qauser1335-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 67451,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser6097 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser6097 Testnet Token",
|
||||
"symbol": "NHU",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 67451,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://67451.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser6097 Testnet",
|
||||
"slug": "qauser6097-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 70341,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser1957 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser1957 Testnet Token",
|
||||
"symbol": "AKI",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 70341,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://70341.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser1957 Testnet",
|
||||
"slug": "qauser1957-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -6,10 +6,22 @@ export default {
|
||||
{
|
||||
"name": "GuapcoinX Explorer",
|
||||
"url": "http://explorer.guapcoinx.com",
|
||||
"standard": "none"
|
||||
"standard": "none",
|
||||
"icon": {
|
||||
"url": "ipfs://QmcDTR7982VQKDDz2Mh4fZbnE9hn67MuFPWQv1MimCqPvB",
|
||||
"width": 800,
|
||||
"height": 800,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmcDTR7982VQKDDz2Mh4fZbnE9hn67MuFPWQv1MimCqPvB",
|
||||
"width": 800,
|
||||
"height": 800,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://guapcoin.org/",
|
||||
"name": "GuapcoinX",
|
||||
"nativeCurrency": {
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 73677,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser9318 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser9318 Testnet Token",
|
||||
"symbol": "XUK",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 73677,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://73677.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser9318 Testnet",
|
||||
"slug": "qauser9318-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 77552,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser3673 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser3673 Testnet Token",
|
||||
"symbol": "YSI",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 77552,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://77552.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser3673 Testnet",
|
||||
"slug": "qauser3673-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 80719,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser4301 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser4301 Testnet Token",
|
||||
"symbol": "NHU",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 80719,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://80719.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser4301 Testnet",
|
||||
"slug": "qauser4301-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,51 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 810180,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "zkLink Nova Block Explorer",
|
||||
"url": "https://explorer.zklink.io",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://zklink.io",
|
||||
"name": "zkLink Nova Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 810180,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-59144",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://portal.zklink.io"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rpc": [
|
||||
"https://810180.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.zklink.io",
|
||||
"wss://rpc.zklink.io"
|
||||
],
|
||||
"shortName": "zklink-nova",
|
||||
"slip44": 1,
|
||||
"slug": "zklink-nova",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,51 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 810182,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "zkLink Nova Block Explorer",
|
||||
"url": "https://goerli.explorer.zklink.io",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://zklink.io",
|
||||
"name": "zkLink Nova Goerli Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 810182,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-59140",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://goerli.portal.zklink.io"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rpc": [
|
||||
"https://810182.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://goerli.rpc.zklink.io",
|
||||
"wss://goerli.rpc.zklink.io"
|
||||
],
|
||||
"shortName": "zklink-nova-goerli",
|
||||
"slip44": 1,
|
||||
"slug": "zklink-nova-goerli-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 81573,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QIS0311 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QIS0311 Testnet Token",
|
||||
"symbol": "MVD",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 81573,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://81573.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QIS0311 Testnet",
|
||||
"slug": "qis0311-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 9872,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser0507 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser0507 Testnet Token",
|
||||
"symbol": "KQA",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 9872,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://9872.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser0507 Testnet",
|
||||
"slug": "qauser0507-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/chains",
|
||||
"version": "0.1.78",
|
||||
"version": "0.1.79",
|
||||
"main": "dist/thirdweb-dev-chains.cjs.js",
|
||||
"module": "dist/thirdweb-dev-chains.esm.js",
|
||||
"exports": {
|
||||
|
||||
@@ -96,7 +96,7 @@ ${exports.join("\n")}
|
||||
export * from "./types";
|
||||
export * from "./utils";
|
||||
export * from "./async";
|
||||
export const defaultChains = [c1, c5, c8453, c84531, c137, c80001, c42161, c421613, c10, c420, c56, c97, c250, c4002, c43114, c43113, c1337];
|
||||
export const defaultChains = [c1, c11155111, c8453, c84532, c137, c80001, c42161, c421614, c10, c11155420, c56, c97, c250, c4002, c43114, c43113, c1337];
|
||||
|
||||
\/**
|
||||
* @deprecated use \`fetchChains()\` instead
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,5 +1,15 @@
|
||||
# thirdweb
|
||||
|
||||
## 0.13.51
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`846a350`](https://github.com/thirdweb-dev/js/commit/846a3503fe4a8d39e92dd318470cefefd3b94c69), [`2e01627`](https://github.com/thirdweb-dev/js/commit/2e01627c998a49a1dd41041f3743a28488c92697)]:
|
||||
- @thirdweb-dev/sdk@4.0.46
|
||||
- @thirdweb-dev/chains@0.1.79
|
||||
- @thirdweb-dev/wallets@2.4.21
|
||||
- @thirdweb-dev/auth@4.1.43
|
||||
|
||||
## 0.13.50
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "thirdweb",
|
||||
"main": "dist/cli/index.js",
|
||||
"version": "0.13.50",
|
||||
"version": "0.13.51",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @thirdweb-dev/react-core
|
||||
|
||||
## 4.4.19
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`846a350`](https://github.com/thirdweb-dev/js/commit/846a3503fe4a8d39e92dd318470cefefd3b94c69), [`2e01627`](https://github.com/thirdweb-dev/js/commit/2e01627c998a49a1dd41041f3743a28488c92697)]:
|
||||
- @thirdweb-dev/sdk@4.0.46
|
||||
- @thirdweb-dev/chains@0.1.79
|
||||
- @thirdweb-dev/wallets@2.4.21
|
||||
- @thirdweb-dev/auth@4.1.43
|
||||
|
||||
## 4.4.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-core",
|
||||
"version": "4.4.18",
|
||||
"version": "4.4.19",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,7 @@
|
||||
# @thirdweb-dev/react-native-compat
|
||||
|
||||
## 0.7.16
|
||||
|
||||
## 0.7.15
|
||||
|
||||
## 0.7.14
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native-compat",
|
||||
"description": "Shims for Thirdweb in React Native Projects",
|
||||
"version": "0.7.15",
|
||||
"version": "0.7.16",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @thirdweb-dev/react-native
|
||||
|
||||
## 0.7.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`846a350`](https://github.com/thirdweb-dev/js/commit/846a3503fe4a8d39e92dd318470cefefd3b94c69), [`2e01627`](https://github.com/thirdweb-dev/js/commit/2e01627c998a49a1dd41041f3743a28488c92697)]:
|
||||
- @thirdweb-dev/sdk@4.0.46
|
||||
- @thirdweb-dev/chains@0.1.79
|
||||
- @thirdweb-dev/react-core@4.4.19
|
||||
- @thirdweb-dev/wallets@2.4.21
|
||||
|
||||
## 0.7.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native",
|
||||
"version": "0.7.15",
|
||||
"version": "0.7.16",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,15 @@
|
||||
# @thirdweb-dev/react
|
||||
|
||||
## 4.4.19
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`846a350`](https://github.com/thirdweb-dev/js/commit/846a3503fe4a8d39e92dd318470cefefd3b94c69), [`2e01627`](https://github.com/thirdweb-dev/js/commit/2e01627c998a49a1dd41041f3743a28488c92697)]:
|
||||
- @thirdweb-dev/sdk@4.0.46
|
||||
- @thirdweb-dev/chains@0.1.79
|
||||
- @thirdweb-dev/react-core@4.4.19
|
||||
- @thirdweb-dev/wallets@2.4.21
|
||||
|
||||
## 4.4.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react",
|
||||
"version": "4.4.18",
|
||||
"version": "4.4.19",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,14 @@
|
||||
# @thirdweb-dev/sdk
|
||||
|
||||
## 4.0.46
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2483](https://github.com/thirdweb-dev/js/pull/2483) [`846a350`](https://github.com/thirdweb-dev/js/commit/846a3503fe4a8d39e92dd318470cefefd3b94c69) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Min maxPriorityFeePerGas enforcement
|
||||
|
||||
- Updated dependencies [[`2e01627`](https://github.com/thirdweb-dev/js/commit/2e01627c998a49a1dd41041f3743a28488c92697)]:
|
||||
- @thirdweb-dev/chains@0.1.79
|
||||
|
||||
## 4.0.45
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/sdk",
|
||||
"version": "4.0.45",
|
||||
"version": "4.0.46",
|
||||
"description": "The main thirdweb SDK.",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/sdk",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -27,7 +27,7 @@ export function getAnalyticsHeaders() {
|
||||
"x-sdk-os": globals.x_sdk_os,
|
||||
"x-sdk-name": globals.x_sdk_name,
|
||||
"x-sdk-platform": globals.x_sdk_platform,
|
||||
"x-bundle-id": globals.app_bundle_id,
|
||||
...(globals.app_bundle_id ? { "x-bundle-id": globals.app_bundle_id } : {}),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -33,8 +33,6 @@ import { overrideRecipientAddress } from "./override-recipient-address";
|
||||
* @returns
|
||||
* @internal
|
||||
*/
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
// TODO: Update function interface: Remove unused param
|
||||
export async function getDeployArguments<
|
||||
TContractType extends PrebuiltContractType,
|
||||
>(
|
||||
@@ -42,9 +40,8 @@ export async function getDeployArguments<
|
||||
metadata: z.input<DeploySchemaForPrebuiltContractType<TContractType>>,
|
||||
contractURI: string,
|
||||
signer: Signer,
|
||||
storage: ThirdwebStorage,
|
||||
): Promise<any[]> {
|
||||
const signerAddress = await signer.getAddress();
|
||||
const signerAddress = metadata.defaultAdmin || (await signer.getAddress());
|
||||
const trustedForwarders: string[] = [];
|
||||
|
||||
// add any custom forwarders passed in
|
||||
|
||||
@@ -79,6 +79,12 @@ export async function getDynamicFeeData(
|
||||
|
||||
// add 10% tip to maxPriorityFeePerGas for faster processing
|
||||
maxPriorityFeePerGas = getPreferredPriorityFee(maxPriorityFeePerGas);
|
||||
|
||||
// ensure maxPriorityFeePerGas is at least 0.001 gwei
|
||||
// the value seems to be rejected by some nodes otherwise
|
||||
if (maxPriorityFeePerGas.lt(1000000)) {
|
||||
maxPriorityFeePerGas = BigNumber.from(1000000);
|
||||
}
|
||||
// eip-1559 formula, doubling the base fee ensures that the tx can be included in the next 6 blocks no matter how busy the network is
|
||||
// good article on the subject: https://www.blocknative.com/blog/eip-1559-fees
|
||||
maxFeePerGas = baseBlockFee.mul(2).add(maxPriorityFeePerGas);
|
||||
|
||||
@@ -257,7 +257,7 @@ export function getProviderFromRpcUrl(
|
||||
typeof globalThis !== "undefined" && "APP_BUNDLE_ID" in globalThis
|
||||
? ((globalThis as any).APP_BUNDLE_ID as string)
|
||||
: undefined;
|
||||
if (!rpcUrl.includes("bundleId")) {
|
||||
if (!rpcUrl.includes("bundleId") && bundleId) {
|
||||
rpcUrl = rpcUrl + (bundleId ? `?bundleId=${bundleId}` : "");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,9 +88,8 @@ export class ContractFactory extends ContractWrapper<TWFactory> {
|
||||
onExecute?: () => void,
|
||||
): Promise<Transaction<Address>> => {
|
||||
const contract = PREBUILT_CONTRACTS_MAP[contractType];
|
||||
const metadata = await contract.schema.deploy.parseAsync(
|
||||
contractMetadata,
|
||||
);
|
||||
const metadata =
|
||||
await contract.schema.deploy.parseAsync(contractMetadata);
|
||||
|
||||
// TODO: is there any special pre-processing we need to do before uploading?
|
||||
const contractURI = await this.storage.upload(metadata);
|
||||
@@ -119,7 +118,6 @@ export class ContractFactory extends ContractWrapper<TWFactory> {
|
||||
metadata,
|
||||
contractURI,
|
||||
signer,
|
||||
this.storage,
|
||||
);
|
||||
|
||||
const encodedFunc = Contract.getInterface(ABI).encodeFunctionData(
|
||||
@@ -311,9 +309,8 @@ export class ContractFactory extends ContractWrapper<TWFactory> {
|
||||
];
|
||||
case TokenDropInitializer.contractType:
|
||||
case TokenInitializer.contractType:
|
||||
const erc20metadata = await TokenInitializer.schema.deploy.parseAsync(
|
||||
metadata,
|
||||
);
|
||||
const erc20metadata =
|
||||
await TokenInitializer.schema.deploy.parseAsync(metadata);
|
||||
return [
|
||||
signerAddress,
|
||||
erc20metadata.name,
|
||||
@@ -331,9 +328,8 @@ export class ContractFactory extends ContractWrapper<TWFactory> {
|
||||
erc20metadata.platform_fee_basis_points,
|
||||
];
|
||||
case VoteInitializer.contractType:
|
||||
const voteMetadata = await VoteInitializer.schema.deploy.parseAsync(
|
||||
metadata,
|
||||
);
|
||||
const voteMetadata =
|
||||
await VoteInitializer.schema.deploy.parseAsync(metadata);
|
||||
return [
|
||||
voteMetadata.name,
|
||||
contractURI,
|
||||
@@ -345,9 +341,8 @@ export class ContractFactory extends ContractWrapper<TWFactory> {
|
||||
voteMetadata.voting_quorum_fraction,
|
||||
];
|
||||
case SplitInitializer.contractType:
|
||||
const splitsMetadata = await SplitInitializer.schema.deploy.parseAsync(
|
||||
metadata,
|
||||
);
|
||||
const splitsMetadata =
|
||||
await SplitInitializer.schema.deploy.parseAsync(metadata);
|
||||
return [
|
||||
signerAddress,
|
||||
contractURI,
|
||||
@@ -382,9 +377,8 @@ export class ContractFactory extends ContractWrapper<TWFactory> {
|
||||
marketplaceV3Metadata.platform_fee_basis_points,
|
||||
];
|
||||
case PackInitializer.contractType:
|
||||
const packsMetadata = await PackInitializer.schema.deploy.parseAsync(
|
||||
metadata,
|
||||
);
|
||||
const packsMetadata =
|
||||
await PackInitializer.schema.deploy.parseAsync(metadata);
|
||||
return [
|
||||
signerAddress,
|
||||
packsMetadata.name,
|
||||
|
||||
@@ -1604,7 +1604,6 @@ export class ContractDeployer extends RPCConnectionHandler {
|
||||
parsedMetadata,
|
||||
contractURI,
|
||||
signer,
|
||||
this.storage,
|
||||
);
|
||||
|
||||
// fetch the publish URI from the ContractPublisher contract
|
||||
@@ -1650,7 +1649,7 @@ export class ContractDeployer extends RPCConnectionHandler {
|
||||
publisherAddress: AddressOrEns,
|
||||
contractName: string,
|
||||
constructorParams: any[],
|
||||
version: string = "latest",
|
||||
version = "latest",
|
||||
options?: DeployOptions,
|
||||
): Promise<DeployTransaction> => {
|
||||
const publishedContract = await this.fetchPublishedContractFromPolygon(
|
||||
@@ -1688,7 +1687,7 @@ export class ContractDeployer extends RPCConnectionHandler {
|
||||
contractName: string,
|
||||
constructorParams: any[],
|
||||
publisherAddress: string = THIRDWEB_DEPLOYER,
|
||||
contractVersion: string = "latest",
|
||||
contractVersion = "latest",
|
||||
saltForCreate2?: string,
|
||||
): Promise<string> {
|
||||
const signer = this.getSigner();
|
||||
@@ -1719,7 +1718,7 @@ export class ContractDeployer extends RPCConnectionHandler {
|
||||
contractName: string,
|
||||
constructorParams: any[],
|
||||
publisherAddress: string = THIRDWEB_DEPLOYER,
|
||||
contractVersion: string = "latest",
|
||||
contractVersion = "latest",
|
||||
saltForCreate2?: string,
|
||||
): Promise<string> {
|
||||
const provider = this.getProvider();
|
||||
|
||||
@@ -18,6 +18,7 @@ export const CommonContractSchema = /* @__PURE__ */ (() =>
|
||||
external_link: z.string().optional(),
|
||||
app_uri: z.string().optional(),
|
||||
social_urls: z.record(z.string()).optional(),
|
||||
defaultAdmin: AddressOrEnsSchema.optional(),
|
||||
})
|
||||
.catchall(z.unknown()))();
|
||||
|
||||
|
||||
@@ -57,6 +57,11 @@ export interface NFTContractDeployMetadata {
|
||||
* The default app for this contract
|
||||
*/
|
||||
app_uri?: string;
|
||||
|
||||
/**
|
||||
* The default admin for this contract
|
||||
*/
|
||||
defaultAdmin?: AddressOrEns;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -104,6 +109,10 @@ export interface OpenEditionContractDeployMetadata {
|
||||
* The default app for this contract
|
||||
*/
|
||||
app_uri?: string;
|
||||
/**
|
||||
* The default admin for this contract
|
||||
*/
|
||||
defaultAdmin?: AddressOrEns;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -152,6 +161,10 @@ export interface TokenContractDeployMetadata {
|
||||
* The default app for this contract
|
||||
*/
|
||||
app_uri?: string;
|
||||
/**
|
||||
* The default admin for this contract
|
||||
*/
|
||||
defaultAdmin?: AddressOrEns;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -192,6 +205,10 @@ export interface MarketplaceContractDeployMetadata {
|
||||
* The default app for this contract
|
||||
*/
|
||||
app_uri?: string;
|
||||
/**
|
||||
* The default admin for this contract
|
||||
*/
|
||||
defaultAdmin?: AddressOrEns;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -231,6 +248,10 @@ export interface MarketplaceV3ContractDeployMetadata {
|
||||
* The default app for this contract
|
||||
*/
|
||||
app_uri?: string;
|
||||
/**
|
||||
* The default admin for this contract
|
||||
*/
|
||||
defaultAdmin?: AddressOrEns;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -284,6 +305,10 @@ export interface VoteContractDeployMetadata {
|
||||
* The default app for this contract
|
||||
*/
|
||||
app_uri?: string;
|
||||
/**
|
||||
* The default admin for this contract
|
||||
*/
|
||||
defaultAdmin?: AddressOrEns;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -333,6 +358,10 @@ export interface SplitContractDeployMetadata {
|
||||
* The default app for this contract
|
||||
*/
|
||||
app_uri?: string;
|
||||
/**
|
||||
* The default admin for this contract
|
||||
*/
|
||||
defaultAdmin?: AddressOrEns;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -376,6 +405,10 @@ export interface MultiwrapContractDeployMetadata {
|
||||
* The default app for this contract
|
||||
*/
|
||||
app_uri?: string;
|
||||
/**
|
||||
* The default admin for this contract
|
||||
*/
|
||||
defaultAdmin?: AddressOrEns;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -407,6 +440,10 @@ export interface AirdropContractDeployMetadata {
|
||||
* The default app for this contract
|
||||
*/
|
||||
app_uri?: string;
|
||||
/**
|
||||
* The default admin for this contract
|
||||
*/
|
||||
defaultAdmin?: AddressOrEns;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -368,4 +368,27 @@ describe("NFT Contract", async () => {
|
||||
});
|
||||
expect(nfts).to.be.an("array").length(_tokenIds.length);
|
||||
});
|
||||
|
||||
it("allows overriding the default admin", async () => {
|
||||
const address = await sdk.deployer.deployBuiltInContract(
|
||||
NFTCollectionInitializer.contractType,
|
||||
{
|
||||
name: "NFT Contract",
|
||||
description: "Test NFT contract from tests",
|
||||
image:
|
||||
"https://pbs.twimg.com/profile_images/1433508973215367176/XBCfBn3g_400x400.jpg",
|
||||
primary_sale_recipient: adminWallet.address,
|
||||
seller_fee_basis_points: 1000,
|
||||
fee_recipient: AddressZero,
|
||||
platform_fee_basis_points: 10,
|
||||
platform_fee_recipient: AddressZero,
|
||||
defaultAdmin: samWallet.address,
|
||||
},
|
||||
);
|
||||
|
||||
const contract = await sdk.getNFTCollection(address);
|
||||
|
||||
const admins = await contract.roles.get("admin");
|
||||
expect(admins[0]).to.eq(samWallet.address);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
|
||||
import { Fncy, Goerli } from "@thirdweb-dev/chains";
|
||||
import { Fncy, Goerli, Sepolia } from "@thirdweb-dev/chains";
|
||||
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
||||
import { expect } from "chai";
|
||||
import { Signer, ethers } from "ethers";
|
||||
@@ -26,25 +26,27 @@ describe("SDK Initialization", async () => {
|
||||
});
|
||||
|
||||
it("should be able to be initialized with a chainId", async () => {
|
||||
const sdk = new ThirdwebSDK(5, { secretKey: process.env.TW_SECRET_KEY });
|
||||
const sdk = new ThirdwebSDK(11155111, {
|
||||
secretKey: process.env.TW_SECRET_KEY,
|
||||
});
|
||||
const network = await sdk.getProvider().getNetwork();
|
||||
expect(network.chainId).to.equal(5);
|
||||
expect(network.chainId).to.equal(11155111);
|
||||
});
|
||||
|
||||
it("should be able to be initialized with a chain name", async () => {
|
||||
const sdk = new ThirdwebSDK("goerli", {
|
||||
const sdk = new ThirdwebSDK("sepolia", {
|
||||
secretKey: process.env.TW_SECRET_KEY,
|
||||
});
|
||||
const network = await sdk.getProvider().getNetwork();
|
||||
expect(network.chainId).to.equal(5);
|
||||
expect(network.chainId).to.equal(11155111);
|
||||
});
|
||||
|
||||
it("should be able to be initialized with a default chain", async () => {
|
||||
const sdk = new ThirdwebSDK(Goerli, {
|
||||
const sdk = new ThirdwebSDK(Sepolia, {
|
||||
secretKey: process.env.TW_SECRET_KEY,
|
||||
});
|
||||
const network = await sdk.getProvider().getNetwork();
|
||||
expect(network.chainId).to.equal(5);
|
||||
expect(network.chainId).to.equal(11155111);
|
||||
});
|
||||
|
||||
it("should be able to be initialized with a custom chain", async () => {
|
||||
@@ -81,30 +83,30 @@ describe("SDK Initialization", async () => {
|
||||
|
||||
it("Should be able to be initialized with a private key", async () => {
|
||||
const privateKey = ethers.Wallet.createRandom().privateKey;
|
||||
const sdk = ThirdwebSDK.fromPrivateKey(privateKey, "goerli", {
|
||||
const sdk = ThirdwebSDK.fromPrivateKey(privateKey, "sepolia", {
|
||||
secretKey: process.env.TW_SECRET_KEY,
|
||||
});
|
||||
const network = await sdk.getProvider().getNetwork();
|
||||
expect(network.chainId).to.equal(5);
|
||||
expect(network.chainId).to.equal(11155111);
|
||||
});
|
||||
|
||||
it("Should be able to be initialized with a signer", async () => {
|
||||
const emptySigner = ethers.Wallet.createRandom();
|
||||
const sdk = ThirdwebSDK.fromSigner(emptySigner, "goerli", {
|
||||
const sdk = ThirdwebSDK.fromSigner(emptySigner, "sepolia", {
|
||||
secretKey: process.env.TW_SECRET_KEY,
|
||||
});
|
||||
const network = await sdk.getProvider().getNetwork();
|
||||
expect(network.chainId).to.equal(5);
|
||||
expect(network.chainId).to.equal(11155111);
|
||||
});
|
||||
|
||||
it("Should be able to be initialized with a wallet", async () => {
|
||||
const emptySigner = ethers.Wallet.createRandom();
|
||||
const wallet = new EthersWallet(emptySigner);
|
||||
const sdk = await ThirdwebSDK.fromWallet(wallet, "goerli", {
|
||||
const sdk = await ThirdwebSDK.fromWallet(wallet, "sepolia", {
|
||||
secretKey: process.env.TW_SECRET_KEY,
|
||||
});
|
||||
const network = await sdk.getProvider().getNetwork();
|
||||
expect(network.chainId).to.equal(5);
|
||||
expect(network.chainId).to.equal(11155111);
|
||||
});
|
||||
|
||||
it("Should be able to connect directly via http RPC URL", async () => {
|
||||
|
||||
Binary file not shown.
@@ -90,7 +90,7 @@ export class StorageDownloader implements IStorageDownloader {
|
||||
if (this.secretKey) {
|
||||
headers = { "x-secret-key": this.secretKey };
|
||||
} else if (this.clientId) {
|
||||
if (!resolvedUri.includes("bundleId")) {
|
||||
if (!resolvedUri.includes("bundleId") && bundleId) {
|
||||
resolvedUri = resolvedUri + (bundleId ? `?bundleId=${bundleId}` : "");
|
||||
}
|
||||
headers["x-client-Id"] = this.clientId;
|
||||
|
||||
@@ -8,6 +8,9 @@ export function setAnalyticsHeaders(headers: Record<string, string>) {
|
||||
headers["x-sdk-name"] = globals.x_sdk_name;
|
||||
headers["x-sdk-platform"] = globals.x_sdk_platform;
|
||||
headers["x-sdk-os"] = globals.x_sdk_os;
|
||||
if (globals.app_bundle_id) {
|
||||
headers["x-bundle-id"] = globals.app_bundle_id;
|
||||
}
|
||||
}
|
||||
|
||||
export function setAnalyticsHeadersForXhr(xhr: XMLHttpRequest) {
|
||||
@@ -17,7 +20,9 @@ export function setAnalyticsHeadersForXhr(xhr: XMLHttpRequest) {
|
||||
xhr.setRequestHeader("x-sdk-os", globals.x_sdk_os);
|
||||
xhr.setRequestHeader("x-sdk-name", globals.x_sdk_name);
|
||||
xhr.setRequestHeader("x-sdk-platform", globals.x_sdk_platform);
|
||||
xhr.setRequestHeader("x-bundle-id", globals.app_bundle_id);
|
||||
if (globals.app_bundle_id) {
|
||||
xhr.setRequestHeader("x-bundle-id", globals.app_bundle_id);
|
||||
}
|
||||
}
|
||||
|
||||
export function getAnalyticsHeaders() {
|
||||
@@ -27,7 +32,7 @@ export function getAnalyticsHeaders() {
|
||||
"x-sdk-os": globals.x_sdk_os,
|
||||
"x-sdk-name": globals.x_sdk_name,
|
||||
"x-sdk-platform": globals.x_sdk_platform,
|
||||
"x-bundle-id": globals.app_bundle_id,
|
||||
...(globals.app_bundle_id ? { "x-bundle-id": globals.app_bundle_id } : {}),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,15 @@
|
||||
# @thirdweb-dev/unity-js-bridge
|
||||
|
||||
## 0.4.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`846a350`](https://github.com/thirdweb-dev/js/commit/846a3503fe4a8d39e92dd318470cefefd3b94c69), [`2e01627`](https://github.com/thirdweb-dev/js/commit/2e01627c998a49a1dd41041f3743a28488c92697)]:
|
||||
- @thirdweb-dev/sdk@4.0.46
|
||||
- @thirdweb-dev/chains@0.1.79
|
||||
- @thirdweb-dev/wallets@2.4.21
|
||||
- @thirdweb-dev/auth@4.1.43
|
||||
|
||||
## 0.4.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/unity-js-bridge",
|
||||
"version": "0.4.8",
|
||||
"version": "0.4.9",
|
||||
"main": "dist/thirdweb-unity-bridge.js",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @thirdweb-dev/wallets
|
||||
|
||||
## 2.4.21
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`846a350`](https://github.com/thirdweb-dev/js/commit/846a3503fe4a8d39e92dd318470cefefd3b94c69), [`2e01627`](https://github.com/thirdweb-dev/js/commit/2e01627c998a49a1dd41041f3743a28488c92697)]:
|
||||
- @thirdweb-dev/sdk@4.0.46
|
||||
- @thirdweb-dev/chains@0.1.79
|
||||
|
||||
## 2.4.20
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/wallets",
|
||||
"version": "2.4.20",
|
||||
"version": "2.4.21",
|
||||
"main": "dist/thirdweb-dev-wallets.cjs.js",
|
||||
"module": "dist/thirdweb-dev-wallets.esm.js",
|
||||
"browser": {
|
||||
|
||||
@@ -46,11 +46,12 @@ class VerifyingPaymasterAPI extends PaymasterAPI {
|
||||
} else if (this.clientId) {
|
||||
headers["x-client-id"] = this.clientId;
|
||||
|
||||
if (
|
||||
typeof globalThis !== "undefined" &&
|
||||
"APP_BUNDLE_ID" in globalThis
|
||||
) {
|
||||
headers["x-bundle-id"] = (globalThis as any).APP_BUNDLE_ID as string;
|
||||
const bundleId =
|
||||
typeof globalThis !== "undefined" && "APP_BUNDLE_ID" in globalThis
|
||||
? ((globalThis as any).APP_BUNDLE_ID as string)
|
||||
: undefined;
|
||||
if (bundleId) {
|
||||
headers["x-bundle-id"] = bundleId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,9 @@ export function setAnalyticsHeaders(headers: Record<string, string>) {
|
||||
headers["x-sdk-name"] = globals.x_sdk_name;
|
||||
headers["x-sdk-platform"] = globals.x_sdk_platform;
|
||||
headers["x-sdk-os"] = globals.x_sdk_os;
|
||||
if (globals.app_bundle_id) {
|
||||
headers["x-bundle-id"] = globals.app_bundle_id;
|
||||
}
|
||||
}
|
||||
|
||||
export function setAnalyticsHeadersForXhr(xhr: XMLHttpRequest) {
|
||||
@@ -24,7 +27,9 @@ export function setAnalyticsHeadersForXhr(xhr: XMLHttpRequest) {
|
||||
xhr.setRequestHeader("x-sdk-os", globals.x_sdk_os);
|
||||
xhr.setRequestHeader("x-sdk-name", globals.x_sdk_name);
|
||||
xhr.setRequestHeader("x-sdk-platform", globals.x_sdk_platform);
|
||||
xhr.setRequestHeader("x-bundle-id", globals.app_bundle_id);
|
||||
if (globals.app_bundle_id) {
|
||||
xhr.setRequestHeader("x-bundle-id", globals.app_bundle_id);
|
||||
}
|
||||
}
|
||||
|
||||
export function getAnalyticsHeaders() {
|
||||
@@ -34,7 +39,7 @@ export function getAnalyticsHeaders() {
|
||||
"x-sdk-os": globals.x_sdk_os,
|
||||
"x-sdk-name": globals.x_sdk_name,
|
||||
"x-sdk-platform": globals.x_sdk_platform,
|
||||
"x-bundle-id": globals.app_bundle_id,
|
||||
...(globals.app_bundle_id ? { "x-bundle-id": globals.app_bundle_id } : {}),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user