Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6bf1dad28b | ||
|
|
75e66b189d | ||
|
|
d2541e5d2c | ||
|
|
0bce535094 | ||
|
|
88886acd76 | ||
|
|
1d669547fb | ||
|
|
9a031bb19f | ||
|
|
e6fce1f2e6 | ||
|
|
3c13fe4423 | ||
|
|
f916d7a453 | ||
|
|
7882b22306 |
@@ -1,5 +1,12 @@
|
||||
# @thirdweb-dev/auth
|
||||
|
||||
## 4.1.72
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies []:
|
||||
- @thirdweb-dev/wallets@2.5.14
|
||||
|
||||
## 4.1.71
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/auth",
|
||||
"version": "4.1.71",
|
||||
"version": "4.1.72",
|
||||
"main": "dist/thirdweb-dev-auth.cjs.js",
|
||||
"module": "dist/thirdweb-dev-auth.esm.js",
|
||||
"browser": {
|
||||
|
||||
@@ -9,16 +9,13 @@ require("dotenv-mono").load();
|
||||
|
||||
describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
"Wallet Authentication - EVM - Smart Wallet",
|
||||
{
|
||||
timeout: 60000,
|
||||
},
|
||||
async () => {
|
||||
let adminWallet: any, signerWallet: any, attackerWallet: any;
|
||||
let auth: ThirdwebAuth;
|
||||
|
||||
beforeAll(async () => {
|
||||
const factoryAddress = "0xbf1C9aA4B1A085f7DA890a44E82B0A1289A40052";
|
||||
const chain = 421614;
|
||||
const factoryAddress = "0x7b5ba9D46b53aae55e2c2E9b38d9AfF9a0b158F8";
|
||||
const chain = 84532;
|
||||
const localWallet = new LocalWallet();
|
||||
await localWallet.generate();
|
||||
const smartWallet = new SmartWallet({
|
||||
@@ -42,7 +39,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
auth.updateWallet(signerWallet);
|
||||
});
|
||||
|
||||
it("Should verify logged in wallet", async () => {
|
||||
it("Should verify logged in wallet", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -51,21 +50,25 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
expect(address).to.equal(await signerWallet.getAddress());
|
||||
});
|
||||
|
||||
it("Should verify logged in wallet with chain ID and expiration", async () => {
|
||||
it("Should verify logged in wallet with chain ID and expiration", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login({
|
||||
expirationTime: new Date(Date.now() + 1000 * 60 * 5),
|
||||
chainId: "421614",
|
||||
chainId: "84532",
|
||||
});
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
const address = await auth.verify(payload, {
|
||||
chainId: "421614",
|
||||
chainId: "84532",
|
||||
});
|
||||
|
||||
expect(address).to.equal(await signerWallet.getAddress());
|
||||
});
|
||||
|
||||
it("Should verify payload with resources", async () => {
|
||||
it("Should verify payload with resources", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login({
|
||||
resources: ["https://example.com", "https://test.com"],
|
||||
});
|
||||
@@ -78,7 +81,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
expect(address).to.equal(await signerWallet.getAddress());
|
||||
});
|
||||
|
||||
it("Should reject payload without necessary resources", async () => {
|
||||
it("Should reject payload without necessary resources", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login({
|
||||
resources: ["https://example.com"],
|
||||
});
|
||||
@@ -96,7 +101,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should verify payload with customized statement", async () => {
|
||||
it("Should verify payload with customized statement", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login({
|
||||
statement: "Please sign!",
|
||||
});
|
||||
@@ -109,7 +116,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
expect(address).to.equal(await signerWallet.getAddress());
|
||||
});
|
||||
|
||||
it("Should reject payload with incorrect statement", async () => {
|
||||
it("Should reject payload with incorrect statement", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login({
|
||||
statement: "Please sign!",
|
||||
});
|
||||
@@ -127,7 +136,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should reject invalid nonce", async () => {
|
||||
it("Should reject invalid nonce", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -145,7 +156,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should accept valid nonce", async () => {
|
||||
it("Should accept valid nonce", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -160,7 +173,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
expect(address).to.equal(await signerWallet.getAddress());
|
||||
});
|
||||
|
||||
it("Should reject payload with incorrect domain", async () => {
|
||||
it("Should reject payload with incorrect domain", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -174,7 +189,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should reject expired login payload", async () => {
|
||||
it("Should reject expired login payload", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login({
|
||||
expirationTime: new Date(Date.now() - 1000 * 60 * 5),
|
||||
});
|
||||
@@ -188,7 +205,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should reject payload with incorrect chain ID", async () => {
|
||||
it("Should reject payload with incorrect chain ID", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login({
|
||||
chainId: "1",
|
||||
});
|
||||
@@ -206,7 +225,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should reject payload with incorrect signer", async () => {
|
||||
it("Should reject payload with incorrect signer", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
payload.payload.address = await attackerWallet.getAddress();
|
||||
|
||||
@@ -219,7 +240,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should generate valid authentication token", async () => {
|
||||
it("Should generate valid authentication token", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -229,7 +252,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
expect(user.address).to.equal(await signerWallet.getAddress());
|
||||
});
|
||||
|
||||
it("Should reject token with incorrect domain", async () => {
|
||||
it("Should reject token with incorrect domain", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -245,7 +270,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should reject token before invalid before", async () => {
|
||||
it("Should reject token before invalid before", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -261,7 +288,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should reject expired authentication token", async () => {
|
||||
it("Should reject expired authentication token", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -277,7 +306,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should reject if admin address is not connected wallet address", async () => {
|
||||
it("Should reject if admin address is not connected wallet address", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -294,7 +325,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should accept token with valid token ID", async () => {
|
||||
it("Should accept token with valid token ID", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -313,7 +346,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
expect(user.address).to.equal(await signerWallet.getAddress());
|
||||
});
|
||||
|
||||
it("Should reject token with invalid token ID", async () => {
|
||||
it("Should reject token with invalid token ID", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -335,7 +370,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
}
|
||||
});
|
||||
|
||||
it("Should propagate session on token", async () => {
|
||||
it("Should propagate session on token", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -349,7 +386,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
expect(user.session).to.deep.equal({ role: "admin" });
|
||||
});
|
||||
|
||||
it("Should call session callback function", async () => {
|
||||
it("Should call session callback function", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
@@ -368,7 +407,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
||||
});
|
||||
});
|
||||
|
||||
it("Should authenticate with issuer address", async () => {
|
||||
it("Should authenticate with issuer address", {
|
||||
timeout: 240000,
|
||||
}, async () => {
|
||||
const payload = await auth.login();
|
||||
|
||||
auth.updateWallet(adminWallet);
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @thirdweb-dev/chains
|
||||
|
||||
## 0.1.104
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2902](https://github.com/thirdweb-dev/js/pull/2902) [`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
|
||||
|
||||
## 0.1.103
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 10036,
|
||||
"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": "Innovo Markets Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Innovo Markets Mainnet Token",
|
||||
"symbol": "INN",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 10036,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://10036.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/innovo/mainnet/rpc"
|
||||
],
|
||||
"shortName": "Innovo Markets Mainnet",
|
||||
"slug": "innovo-markets",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,52 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "REBUS",
|
||||
"chainId": 1011,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Rebus EVM Explorer (Blockscout)",
|
||||
"url": "https://evm.rebuschain.com",
|
||||
"standard": "none",
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Rebus Cosmos Explorer (ping.pub)",
|
||||
"url": "https://cosmos.rebuschain.com",
|
||||
"standard": "none",
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.rebuschain.com",
|
||||
"name": "Rebus Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Rebus",
|
||||
"symbol": "REBUS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1011,
|
||||
"rpc": [
|
||||
"https://1011.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://apievm.rebuschain.com/rpc"
|
||||
],
|
||||
"shortName": "rebus",
|
||||
"slug": "rebus",
|
||||
"testnet": false,
|
||||
"title": "Rebuschain Mainnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 10255,
|
||||
"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": "Coqnet Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Coqnet Testnet Token",
|
||||
"symbol": "COQ",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 10255,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://10255.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/coqnet/testnet/rpc"
|
||||
],
|
||||
"shortName": "Coqnet Testnet",
|
||||
"slug": "coqnet-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -11,7 +11,7 @@ export default {
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://kakarot.org",
|
||||
"name": "Kakarot Sepolia",
|
||||
"name": "Kakarot Sepolia Deprecated",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
"bridges": []
|
||||
},
|
||||
"rpc": [],
|
||||
"shortName": "kkrt-sepolia",
|
||||
"slug": "kakarot-sepolia",
|
||||
"shortName": "kkrt-sepolia-deprecated",
|
||||
"slug": "kakarot-sepolia-deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,39 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 1802203764,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Kakarot Scan",
|
||||
"url": "https://sepolia.kakarotscan.org",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmNTZ9nEomAXK6bLxUbMfTS1TvrsN22HU1zTtxHUpMkUhz",
|
||||
"width": 1000,
|
||||
"height": 1000,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://kakarot.org",
|
||||
"name": "Kakarot Sepolia",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1802203764,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-11155111",
|
||||
"bridges": []
|
||||
},
|
||||
"rpc": [
|
||||
"https://1802203764.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://sepolia-rpc.kakarot.org"
|
||||
],
|
||||
"shortName": "kkrt-sepolia",
|
||||
"slug": "kakarot-sepolia",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,54 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "B3 Sepolia",
|
||||
"chainId": 1993,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://sepolia.explorer.b3.fun/",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://Qmc6XdDC7FSn2YyBwFXUNVbk9Nmhvn2Bz7iMqCA1ofwhQC/b3-logo-temp-cropped.png",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [
|
||||
"https://faucet.b3.fun/"
|
||||
],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "ipfs://Qmc6XdDC7FSn2YyBwFXUNVbk9Nmhvn2Bz7iMqCA1ofwhQC/b3-logo-temp-cropped.png",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://docs.b3.fun/",
|
||||
"name": "B3 Sepolia",
|
||||
"nativeCurrency": {
|
||||
"name": "ETH",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1993,
|
||||
"parent": {
|
||||
"type": "L3",
|
||||
"chain": "eip155-1",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://bridge.b3.fun/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://1993.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://sepolia.b3.fun/http"
|
||||
],
|
||||
"shortName": "b3-sepolia",
|
||||
"slug": "b3-sepolia",
|
||||
"testnet": true,
|
||||
"title": "B3 Sepolia"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 21178,
|
||||
"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": "QI0430I2",
|
||||
"nativeCurrency": {
|
||||
"name": "QI0430I2 Token",
|
||||
"symbol": "ETI",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 21178,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://21178.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QI0430I2",
|
||||
"slug": "qi0430i2",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Oneness",
|
||||
"chainId": 2140,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "oneness-mainnet",
|
||||
"url": "https://scan.onenesslabs.io",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"name": "Oneness Network",
|
||||
"nativeCurrency": {
|
||||
"name": "BTC",
|
||||
"symbol": "BTC",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 2140,
|
||||
"rpc": [
|
||||
"https://2140.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.onenesslabs.io/"
|
||||
],
|
||||
"shortName": "oneness",
|
||||
"slug": "oneness-network",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Oneness-Testnet",
|
||||
"chainId": 2141,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "oneness-testnet",
|
||||
"url": "https://scan.testnet.onenesslabs.io",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"name": "Oneness TestNet",
|
||||
"nativeCurrency": {
|
||||
"name": "BTC",
|
||||
"symbol": "BTC",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 2141,
|
||||
"rpc": [
|
||||
"https://2141.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.testnet.onenesslabs.io/"
|
||||
],
|
||||
"shortName": "oneness-testnet",
|
||||
"slug": "oneness-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -2,9 +2,19 @@ import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 27827,
|
||||
"explorers": [],
|
||||
"explorers": [
|
||||
{
|
||||
"name": "ZEROONEMAI Explorer",
|
||||
"url": "https://subnets.avax.network/zeroonemai",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "REBUS",
|
||||
"chainId": 3033,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Rebus EVM Explorer (Blockscout)",
|
||||
"url": "https://evm.testnet.rebus.money",
|
||||
"standard": "none",
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Rebus Cosmos Explorer (ping.pub)",
|
||||
"url": "https://testnet.rebus.money/rebustestnet",
|
||||
"standard": "none",
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.rebuschain.com",
|
||||
"name": "Rebus Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Rebus",
|
||||
"symbol": "REBUS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 3033,
|
||||
"rpc": [
|
||||
"https://3033.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://testnet.rebus.money/rpc"
|
||||
],
|
||||
"shortName": "rebus-testnet",
|
||||
"slug": "rebus-testnet",
|
||||
"testnet": true,
|
||||
"title": "Rebuschain Testnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,32 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "MOVE",
|
||||
"chainId": 3073,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "mevm explorer",
|
||||
"url": "https://explorer.movementlabs.xyz",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmWRAor77N6VyjJiQgtsEE7h9Bd1Q7vtRveTYv2A6wZyAT",
|
||||
"width": 1546,
|
||||
"height": 1546,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://movementlabs.xyz",
|
||||
"name": "Movement EVM",
|
||||
"nativeCurrency": {
|
||||
"name": "Move",
|
||||
"symbol": "MOVE",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 3073,
|
||||
"rpc": [],
|
||||
"shortName": "move",
|
||||
"slug": "movement-evm",
|
||||
"status": "incubating",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,32 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "MOVE",
|
||||
"chainId": 30730,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "mevm explorer",
|
||||
"url": "https://explorer.movementlabs.xyz",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmWRAor77N6VyjJiQgtsEE7h9Bd1Q7vtRveTYv2A6wZyAT",
|
||||
"width": 1546,
|
||||
"height": 1546,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://movementlabs.xyz",
|
||||
"name": "Movement EVM Legacy",
|
||||
"nativeCurrency": {
|
||||
"name": "Move",
|
||||
"symbol": "MOVE",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 30730,
|
||||
"rpc": [],
|
||||
"shortName": "moveleg",
|
||||
"slug": "movement-evm-legacy",
|
||||
"status": "incubating",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,32 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "MOVE",
|
||||
"chainId": 30731,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "mevm explorer",
|
||||
"url": "https://explorer.movementlabs.xyz",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmWRAor77N6VyjJiQgtsEE7h9Bd1Q7vtRveTYv2A6wZyAT",
|
||||
"width": 1546,
|
||||
"height": 1546,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://movementlabs.xyz",
|
||||
"name": "Movement EVM Devnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Move",
|
||||
"symbol": "MOVE",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 30731,
|
||||
"rpc": [],
|
||||
"shortName": "movedev",
|
||||
"slug": "movement-evm-devnet",
|
||||
"status": "incubating",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,32 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "MOVE",
|
||||
"chainId": 30732,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "mevm explorer",
|
||||
"url": "https://explorer.movementlabs.xyz",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmWRAor77N6VyjJiQgtsEE7h9Bd1Q7vtRveTYv2A6wZyAT",
|
||||
"width": 1546,
|
||||
"height": 1546,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://movementlabs.xyz",
|
||||
"name": "Movement EVM Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Move",
|
||||
"symbol": "MOVE",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 30732,
|
||||
"rpc": [],
|
||||
"shortName": "movetest",
|
||||
"slug": "movement-evm-testnet",
|
||||
"status": "incubating",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 46565,
|
||||
"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": "QI0430s2",
|
||||
"nativeCurrency": {
|
||||
"name": "QI0430s2 Token",
|
||||
"symbol": "SWS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 46565,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://46565.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QI0430s2",
|
||||
"slug": "qi0430s2",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -10,12 +10,6 @@ export default {
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmWvfA2usnYp1ktzLcqFS8eTLgdp4ifrxjiify46KyG9NZ",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://yooldo.gg/",
|
||||
"name": "Yooldo Verse Mainnet",
|
||||
"nativeCurrency": {
|
||||
|
||||
@@ -10,12 +10,6 @@ export default {
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmWvfA2usnYp1ktzLcqFS8eTLgdp4ifrxjiify46KyG9NZ",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://yooldo.gg/",
|
||||
"name": "Yooldo Verse Testnet",
|
||||
"nativeCurrency": {
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 51440,
|
||||
"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": "QI0430s4",
|
||||
"nativeCurrency": {
|
||||
"name": "QI0430s4 Token",
|
||||
"symbol": "SWS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 51440,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://51440.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QI0430s4",
|
||||
"slug": "qi0430s4",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -9,7 +9,9 @@ export default {
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"faucets": [
|
||||
"https://dev.reactive.network/docs/kopli-testnet#faucet"
|
||||
],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
@@ -18,19 +20,27 @@ export default {
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://QmZewyubd3zC17pmmGbjix6gFsppYpLsP3ntu3aB7rCJmW",
|
||||
"width": 800,
|
||||
"height": 800,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://reactive.network",
|
||||
"name": "Reactive Network Testnet Kopli",
|
||||
"name": "Reactive Kopli",
|
||||
"nativeCurrency": {
|
||||
"name": "React",
|
||||
"name": "Kopli React",
|
||||
"symbol": "REACT",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 5318008,
|
||||
"rpc": [
|
||||
"https://5318008.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://kopli-rpc.reactive.network"
|
||||
"https://kopli-rpc.reactive.network",
|
||||
"http://kopli-rpc.rkt.ink"
|
||||
],
|
||||
"shortName": "react",
|
||||
"slug": "reactive-network-testnet-kopli",
|
||||
"testnet": true
|
||||
"shortName": "kreact",
|
||||
"slug": "reactive-kopli",
|
||||
"testnet": true,
|
||||
"title": "Reactive Network Testnet Kopli"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,42 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "DODOchain",
|
||||
"chainId": 53457,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "DODOchain Testnet (Sepolia) Explorer",
|
||||
"url": "https://testnet-scan.dodochain.com",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmQDdZQjpKhrVM62479RTzppUG8QHhHd8Bq4RFYAjN1yf4",
|
||||
"width": 160,
|
||||
"height": 160,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmQDdZQjpKhrVM62479RTzppUG8QHhHd8Bq4RFYAjN1yf4",
|
||||
"width": 160,
|
||||
"height": 160,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.dodochain.com",
|
||||
"name": "DODOchain testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Berd",
|
||||
"symbol": "BERD",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 53457,
|
||||
"rpc": [
|
||||
"https://53457.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://dodochain-testnet.alt.technology",
|
||||
"wss://dodochain-testnet.alt.technology/ws"
|
||||
],
|
||||
"shortName": "dodochain",
|
||||
"slug": "dodochain-testnet",
|
||||
"testnet": true,
|
||||
"title": "DODOchain testnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 54688,
|
||||
"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": "QI0430I1",
|
||||
"nativeCurrency": {
|
||||
"name": "QI0430I1 Token",
|
||||
"symbol": "ILF",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 54688,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://54688.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QI0430I1",
|
||||
"slug": "qi0430i1",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -6,33 +6,15 @@ export default {
|
||||
{
|
||||
"name": "Imversed EVM explorer (Blockscout)",
|
||||
"url": "https://txe.imversed.network",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
}
|
||||
"standard": "EIP3091"
|
||||
},
|
||||
{
|
||||
"name": "Imversed Cosmos Explorer (Big Dipper)",
|
||||
"url": "https://tex-c.imversed.com",
|
||||
"standard": "none",
|
||||
"icon": {
|
||||
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
}
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://imversed.com",
|
||||
"name": "Imversed Mainnet",
|
||||
"nativeCurrency": {
|
||||
|
||||
@@ -6,33 +6,15 @@ export default {
|
||||
{
|
||||
"name": "Imversed EVM Explorer (Blockscout)",
|
||||
"url": "https://txe-test.imversed.network",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
}
|
||||
"standard": "EIP3091"
|
||||
},
|
||||
{
|
||||
"name": "Imversed Cosmos Explorer (Big Dipper)",
|
||||
"url": "https://tex-t.imversed.com",
|
||||
"standard": "none",
|
||||
"icon": {
|
||||
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
}
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://imversed.com",
|
||||
"name": "Imversed Testnet",
|
||||
"nativeCurrency": {
|
||||
|
||||
@@ -2,9 +2,19 @@ import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 56400,
|
||||
"explorers": [],
|
||||
"explorers": [
|
||||
{
|
||||
"name": "TESTNETZER Explorer",
|
||||
"url": "https://subnets-test.avax.network/testnetzer",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
|
||||
@@ -2,8 +2,26 @@ import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 60808,
|
||||
"explorers": [],
|
||||
"explorers": [
|
||||
{
|
||||
"name": "bobscout",
|
||||
"url": "https://explorer.gobob.xyz",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
|
||||
"width": 551,
|
||||
"height": 540,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmaX5iqQTrJD8TBuvoT97xPMG6LYamjPCPnZUUMh12jc99",
|
||||
"width": 297,
|
||||
"height": 378,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://gobob.xyz",
|
||||
"name": "BOB",
|
||||
"nativeCurrency": {
|
||||
@@ -12,9 +30,22 @@ export default {
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 60808,
|
||||
"rpc": [],
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-1",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://app.gobob.xyz"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rpc": [
|
||||
"https://60808.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.gobob.xyz",
|
||||
"wss://rpc.gobob.xyz"
|
||||
],
|
||||
"shortName": "bob",
|
||||
"slug": "bob",
|
||||
"status": "incubating",
|
||||
"status": "active",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 62040,
|
||||
"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": "QI0430s1",
|
||||
"nativeCurrency": {
|
||||
"name": "QI0430s1 Token",
|
||||
"symbol": "SWS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 62040,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://62040.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QI0430s1",
|
||||
"slug": "qi0430s1",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 64943,
|
||||
"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": "QI0430I1",
|
||||
"nativeCurrency": {
|
||||
"name": "QI0430I1 Token",
|
||||
"symbol": "JIQ",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 64943,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://64943.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QI0430I1",
|
||||
"slug": "qi0430i1-qi0430i1",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -4,12 +4,6 @@ export default {
|
||||
"chainId": 7118,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmNR4Y3cUxefV7KGpGxMkjp5ofeJvbaUkR1GavsmTtK248",
|
||||
"width": 1000,
|
||||
"height": 1000,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://hth.world",
|
||||
"name": "Help The Homeless",
|
||||
"nativeCurrency": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/chains",
|
||||
"version": "0.1.103",
|
||||
"version": "0.1.104",
|
||||
"main": "dist/thirdweb-dev-chains.cjs.js",
|
||||
"module": "dist/thirdweb-dev-chains.esm.js",
|
||||
"exports": {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,5 +1,15 @@
|
||||
# thirdweb
|
||||
|
||||
## 0.13.80
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
|
||||
- @thirdweb-dev/chains@0.1.104
|
||||
- @thirdweb-dev/sdk@4.0.74
|
||||
- @thirdweb-dev/wallets@2.5.14
|
||||
- @thirdweb-dev/auth@4.1.72
|
||||
|
||||
## 0.13.79
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/cli",
|
||||
"main": "dist/cli/index.js",
|
||||
"version": "0.13.79",
|
||||
"version": "0.13.80",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @thirdweb-dev/contracts-js
|
||||
|
||||
## 1.3.22
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2904](https://github.com/thirdweb-dev/js/pull/2904) [`1d66954`](https://github.com/thirdweb-dev/js/commit/1d669547fb4f8a873194e0b843a9ca71e7e1504e) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Contracts version 3.15.0
|
||||
|
||||
## 1.3.21
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/contracts-js",
|
||||
"version": "1.3.21",
|
||||
"version": "1.3.22",
|
||||
"main": "dist/thirdweb-dev-contracts-js.cjs.js",
|
||||
"module": "dist/thirdweb-dev-contracts-js.esm.js",
|
||||
"exports": {
|
||||
@@ -147,6 +147,7 @@
|
||||
"./dist/abis/PermissionsLogic.json": "./dist/abis/PermissionsLogic.json",
|
||||
"./dist/abis/Staking20Base.json": "./dist/abis/Staking20Base.json",
|
||||
"./dist/abis/IContext.json": "./dist/abis/IContext.json",
|
||||
"./dist/abis/AccountSeaportBulkSigSupport.json": "./dist/abis/AccountSeaportBulkSigSupport.json",
|
||||
"./dist/abis/Staking20Upgradeable.json": "./dist/abis/Staking20Upgradeable.json",
|
||||
"./dist/abis/Proxy.json": "./dist/abis/Proxy.json",
|
||||
"./dist/abis/ERC1967Proxy.json": "./dist/abis/ERC1967Proxy.json",
|
||||
@@ -194,8 +195,10 @@
|
||||
"./dist/abis/SignatureMintERC20.json": "./dist/abis/SignatureMintERC20.json",
|
||||
"./dist/abis/Staking1155Upgradeable.json": "./dist/abis/Staking1155Upgradeable.json",
|
||||
"./dist/abis/IEntryPoint.json": "./dist/abis/IEntryPoint.json",
|
||||
"./dist/abis/SeaportOrderParser.json": "./dist/abis/SeaportOrderParser.json",
|
||||
"./dist/abis/EnglishAuctionsStorage.json": "./dist/abis/EnglishAuctionsStorage.json",
|
||||
"./dist/abis/IDropERC721_V3.json": "./dist/abis/IDropERC721_V3.json",
|
||||
"./dist/abis/EIP712.json": "./dist/abis/EIP712.json",
|
||||
"./dist/abis/DelayedReveal.json": "./dist/abis/DelayedReveal.json",
|
||||
"./dist/abis/IAccount.json": "./dist/abis/IAccount.json",
|
||||
"./dist/abis/OffersStorage.json": "./dist/abis/OffersStorage.json",
|
||||
@@ -230,6 +233,7 @@
|
||||
"./dist/abis/IAirdropERC1155.json": "./dist/abis/IAirdropERC1155.json",
|
||||
"./dist/abis/OffersLogic.json": "./dist/abis/OffersLogic.json",
|
||||
"./dist/abis/Marketplace.json": "./dist/abis/Marketplace.json",
|
||||
"./dist/abis/Airdrop.json": "./dist/abis/Airdrop.json",
|
||||
"./dist/abis/DirectListingsStorage.json": "./dist/abis/DirectListingsStorage.json",
|
||||
"./dist/abis/TieredDrop.json": "./dist/abis/TieredDrop.json",
|
||||
"./dist/abis/ERC1155Receiver.json": "./dist/abis/ERC1155Receiver.json",
|
||||
@@ -267,6 +271,7 @@
|
||||
"./dist/abis/IERC721Metadata.json": "./dist/abis/IERC721Metadata.json",
|
||||
"./dist/abis/DropSinglePhase_V1.json": "./dist/abis/DropSinglePhase_V1.json",
|
||||
"./dist/abis/PermissionsEnumerable.json": "./dist/abis/PermissionsEnumerable.json",
|
||||
"./dist/abis/SeaportEIP1271.json": "./dist/abis/SeaportEIP1271.json",
|
||||
"./dist/abis/IAccountFactoryCore.json": "./dist/abis/IAccountFactoryCore.json",
|
||||
"./dist/abis/TokenStake.json": "./dist/abis/TokenStake.json",
|
||||
"./dist/abis/AppURI.json": "./dist/abis/AppURI.json",
|
||||
@@ -324,6 +329,7 @@
|
||||
"./dist/abis/IAirdropERC1155Claimable.json": "./dist/abis/IAirdropERC1155Claimable.json",
|
||||
"./dist/abis/IVotes.json": "./dist/abis/IVotes.json",
|
||||
"./dist/abis/PluginMap.json": "./dist/abis/PluginMap.json",
|
||||
"./dist/abis/ECDSA.json": "./dist/abis/ECDSA.json",
|
||||
"./dist/abis/PermissionsEnumerableLogic.json": "./dist/abis/PermissionsEnumerableLogic.json",
|
||||
"./dist/abis/IContractMetadata.json": "./dist/abis/IContractMetadata.json",
|
||||
"./dist/abis/IDropClaimCondition.json": "./dist/abis/IDropClaimCondition.json",
|
||||
@@ -424,7 +430,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/contracts-js",
|
||||
"dependencies": {
|
||||
"@thirdweb-dev/contracts": "3.14.0"
|
||||
"@thirdweb-dev/contracts": "3.15.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ethersproject/abi": "^5.7.0",
|
||||
@@ -461,4 +467,4 @@
|
||||
"build": "bun ./scripts/revert-exports.ts && pnpm typechain && tsc && pnpm preconstruct build && pnpm extract-abi",
|
||||
"push": "yalc push"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @thirdweb-dev/react-core
|
||||
|
||||
## 4.6.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
|
||||
- @thirdweb-dev/chains@0.1.104
|
||||
- @thirdweb-dev/sdk@4.0.74
|
||||
- @thirdweb-dev/wallets@2.5.14
|
||||
- @thirdweb-dev/auth@4.1.72
|
||||
|
||||
## 4.6.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-core",
|
||||
"version": "4.6.12",
|
||||
"version": "4.6.13",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-core",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @thirdweb-dev/react-native-compat
|
||||
|
||||
## 0.7.45
|
||||
|
||||
## 0.7.44
|
||||
|
||||
## 0.7.43
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native-compat",
|
||||
"description": "Shims for Thirdweb in React Native Projects",
|
||||
"version": "0.7.44",
|
||||
"version": "0.7.45",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native-compat",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @thirdweb-dev/react-native
|
||||
|
||||
## 0.7.45
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
|
||||
- @thirdweb-dev/chains@0.1.104
|
||||
- @thirdweb-dev/sdk@4.0.74
|
||||
- @thirdweb-dev/wallets@2.5.14
|
||||
- @thirdweb-dev/react-core@4.6.13
|
||||
|
||||
## 0.7.44
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native",
|
||||
"version": "0.7.44",
|
||||
"version": "0.7.45",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @thirdweb-dev/react
|
||||
|
||||
## 4.6.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
|
||||
- @thirdweb-dev/chains@0.1.104
|
||||
- @thirdweb-dev/sdk@4.0.74
|
||||
- @thirdweb-dev/wallets@2.5.14
|
||||
- @thirdweb-dev/react-core@4.6.13
|
||||
|
||||
## 4.6.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react",
|
||||
"version": "4.6.12",
|
||||
"version": "4.6.13",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @thirdweb-dev/sdk
|
||||
|
||||
## 4.0.74
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`75e66b1`](https://github.com/thirdweb-dev/js/commit/75e66b189d790778358edeacdd71965f248902c2), [`f916d7a`](https://github.com/thirdweb-dev/js/commit/f916d7a453854bcb8c6f0b9c95b49d34eb865882), [`1d66954`](https://github.com/thirdweb-dev/js/commit/1d669547fb4f8a873194e0b843a9ca71e7e1504e), [`9a031bb`](https://github.com/thirdweb-dev/js/commit/9a031bb19fe9b39ff88a02c48c311ba5c3184aab), [`7882b22`](https://github.com/thirdweb-dev/js/commit/7882b22306c1ccd4919fe088dfcd7c68bff954f9), [`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376), [`e6fce1f`](https://github.com/thirdweb-dev/js/commit/e6fce1f2e617c795377ef4de12e2112f1fa03ebb), [`88886ac`](https://github.com/thirdweb-dev/js/commit/88886acd762e637ac130bb7fa0eda12c6e5da4fc)]:
|
||||
- thirdweb@5.15.0
|
||||
- @thirdweb-dev/contracts-js@1.3.22
|
||||
- @thirdweb-dev/chains@0.1.104
|
||||
|
||||
## 4.0.73
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/sdk",
|
||||
"version": "4.0.73",
|
||||
"version": "4.0.74",
|
||||
"description": "The main thirdweb SDK.",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/sdk",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @thirdweb-dev/unity-js-bridge
|
||||
|
||||
## 0.6.23
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
|
||||
- @thirdweb-dev/chains@0.1.104
|
||||
- @thirdweb-dev/sdk@4.0.74
|
||||
- @thirdweb-dev/wallets@2.5.14
|
||||
- @thirdweb-dev/auth@4.1.72
|
||||
|
||||
## 0.6.22
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/unity-js-bridge",
|
||||
"version": "0.6.22",
|
||||
"version": "0.6.23",
|
||||
"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,14 @@
|
||||
# @thirdweb-dev/wallets
|
||||
|
||||
## 2.5.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`1d66954`](https://github.com/thirdweb-dev/js/commit/1d669547fb4f8a873194e0b843a9ca71e7e1504e), [`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
|
||||
- @thirdweb-dev/contracts-js@1.3.22
|
||||
- @thirdweb-dev/chains@0.1.104
|
||||
- @thirdweb-dev/sdk@4.0.74
|
||||
|
||||
## 2.5.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/wallets",
|
||||
"version": "2.5.13",
|
||||
"version": "2.5.14",
|
||||
"main": "dist/thirdweb-dev-wallets.cjs.js",
|
||||
"module": "dist/thirdweb-dev-wallets.esm.js",
|
||||
"browser": {
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ export async function checkContractWalletSignature(
|
||||
|
||||
const provider = new providers.StaticJsonRpcProvider(
|
||||
{
|
||||
url: chainIdToThirdwebRpc(chainId),
|
||||
url: rpcUrl,
|
||||
skipFetchSetup: _skipFetchSetup,
|
||||
headers,
|
||||
},
|
||||
|
||||
@@ -227,7 +227,7 @@ Code: ${errorCode}`;
|
||||
try {
|
||||
const provider = new providers.StaticJsonRpcProvider(
|
||||
{
|
||||
url: chainIdToThirdwebRpc(chainId, this.config.clientId),
|
||||
url: rpcUrl,
|
||||
headers,
|
||||
},
|
||||
chainId,
|
||||
|
||||
@@ -17,7 +17,7 @@ import { createErc20 } from "../utils/currency";
|
||||
// TODO improve this
|
||||
export function chainIdToThirdwebRpc(chainId: number, clientId?: string) {
|
||||
return `https://${chainId}.rpc.thirdweb.com${clientId ? `/${clientId}` : ""}${
|
||||
typeof globalThis !== "undefined" && "APP_BUNDLE_ID" in globalThis
|
||||
typeof globalThis !== "undefined" && "APP_BUNDLE_ID" in globalThis && !!(globalThis as any).APP_BUNDLE_ID
|
||||
? `?bundleId=${(globalThis as any).APP_BUNDLE_ID as string}`
|
||||
: ""
|
||||
}`;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable better-tree-shaking/no-top-level-side-effects */
|
||||
import { SmartWallet } from "../src/evm/wallets/smart-wallet";
|
||||
import { LocalWallet } from "../src/evm/wallets/local-wallet";
|
||||
import { ArbitrumSepolia } from "@thirdweb-dev/chains";
|
||||
import { BaseSepoliaTestnet } from "@thirdweb-dev/chains";
|
||||
import { ThirdwebSDK, SmartContract } from "@thirdweb-dev/sdk";
|
||||
import { checkContractWalletSignature } from "../src/evm/connectors/smart-wallet/lib/check-contract-wallet-signature";
|
||||
import { describe, it, expect, beforeAll } from "vitest";
|
||||
@@ -12,9 +12,9 @@ let smartWallet: SmartWallet;
|
||||
let smartWalletAddress: string;
|
||||
let personalWallet: LocalWallet;
|
||||
let contract: SmartContract;
|
||||
const factoryAddress = "0x564cf6453a1b0FF8DB603E92EA4BbD410dea45F3"; // pre 712
|
||||
const factoryAddressV2 = "0xbf1C9aA4B1A085f7DA890a44E82B0A1289A40052"; // post 712
|
||||
const chain = ArbitrumSepolia;
|
||||
const factoryAddress = "0x7b5ba9D46b53aae55e2c2E9b38d9AfF9a0b158F8"; // pre 712
|
||||
const factoryAddressV2 = "0xBCE06A6Dcd4dE8c6D8892E404b0a99A8812352b2"; // post 712
|
||||
const chain = BaseSepoliaTestnet;
|
||||
const SECRET_KEY = process.env.TW_SECRET_KEY;
|
||||
|
||||
const describeIf = (condition: boolean) =>
|
||||
@@ -34,21 +34,20 @@ beforeAll(async () => {
|
||||
secretKey: SECRET_KEY,
|
||||
});
|
||||
contract = await sdk.getContract(
|
||||
"0x6A7a26c9a595E6893C255C9dF0b593e77518e0c3", // arb sep edition drop
|
||||
"0x638263e3eAa3917a53630e61B1fBa685308024fa", // edition drop
|
||||
);
|
||||
});
|
||||
|
||||
describeIf(!!SECRET_KEY)(
|
||||
"SmartWallet core tests",
|
||||
{
|
||||
timeout: 240_000,
|
||||
},
|
||||
() => {
|
||||
it("can connect", async () => {
|
||||
expect(smartWalletAddress).toHaveLength(42);
|
||||
});
|
||||
|
||||
it("can execute a tx via SDK", async () => {
|
||||
it("can execute a tx via SDK", {
|
||||
timeout: 120_000,
|
||||
}, async () => {
|
||||
const tx = await contract.erc1155.claim(0, 1);
|
||||
expect(tx.receipt.transactionHash).toHaveLength(66);
|
||||
const isDeployed = await smartWallet.isDeployed();
|
||||
@@ -57,13 +56,17 @@ describeIf(!!SECRET_KEY)(
|
||||
expect(balance.toNumber()).toEqual(1);
|
||||
});
|
||||
|
||||
it("can estimate a tx", async () => {
|
||||
it("can estimate a tx", {
|
||||
timeout: 120_000,
|
||||
}, async () => {
|
||||
const preparedTx = await contract.erc1155.claim.prepare(0, 1);
|
||||
const estimates = await smartWallet.estimate(preparedTx);
|
||||
expect(estimates.wei.toString()).not.toBe("0");
|
||||
});
|
||||
|
||||
it("can execute a tx", async () => {
|
||||
it("can execute a tx", {
|
||||
timeout: 120_000,
|
||||
}, async () => {
|
||||
const preparedTx = await contract.erc1155.claim.prepare(0, 1);
|
||||
const tx = await smartWallet.execute(preparedTx);
|
||||
expect(tx.receipt.transactionHash).toHaveLength(66);
|
||||
@@ -71,7 +74,9 @@ describeIf(!!SECRET_KEY)(
|
||||
expect(balance.toNumber()).toEqual(2);
|
||||
});
|
||||
|
||||
it("can execute a batched tx", async () => {
|
||||
it("can execute a batched tx", {
|
||||
timeout: 120_000,
|
||||
}, async () => {
|
||||
const preparedTx = await contract.erc1155.claim.prepare(0, 1);
|
||||
const tx = await smartWallet.executeBatch([preparedTx, preparedTx]);
|
||||
expect(tx.receipt.transactionHash).toHaveLength(66);
|
||||
@@ -79,7 +84,9 @@ describeIf(!!SECRET_KEY)(
|
||||
expect(balance.toNumber()).toEqual(4);
|
||||
});
|
||||
|
||||
it("can execute a raw tx", async () => {
|
||||
it("can execute a raw tx", {
|
||||
timeout: 120_000,
|
||||
}, async () => {
|
||||
const preparedTx = await contract.erc1155.claim.prepare(0, 1);
|
||||
const tx = await smartWallet.executeRaw({
|
||||
to: preparedTx.getTarget(),
|
||||
@@ -90,7 +97,9 @@ describeIf(!!SECRET_KEY)(
|
||||
expect(balance.toNumber()).toEqual(5);
|
||||
});
|
||||
|
||||
it("can execute a batched raw tx", async () => {
|
||||
it("can execute a batched raw tx", {
|
||||
timeout: 120_000,
|
||||
}, async () => {
|
||||
const preparedTx = await contract.erc1155.claim.prepare(0, 1);
|
||||
const tx = await smartWallet.executeBatchRaw([
|
||||
{
|
||||
@@ -107,7 +116,9 @@ describeIf(!!SECRET_KEY)(
|
||||
expect(balance.toNumber()).toEqual(7);
|
||||
});
|
||||
|
||||
it("can sign and verify 1271 old factory", async () => {
|
||||
it("can sign and verify 1271 old factory", {
|
||||
timeout: 240_000,
|
||||
}, async () => {
|
||||
const message = "0x1234";
|
||||
const sig = await smartWallet.signMessage(message);
|
||||
const isValidV1 = await smartWallet.verifySignature(
|
||||
@@ -128,7 +139,9 @@ describeIf(!!SECRET_KEY)(
|
||||
expect(isValidV2).toEqual(true);
|
||||
});
|
||||
|
||||
it("can sign and verify 1271 new factory", async () => {
|
||||
it("can sign and verify 1271 new factory", {
|
||||
timeout: 240_000,
|
||||
}, async () => {
|
||||
smartWallet = new SmartWallet({
|
||||
chain,
|
||||
factoryAddress: factoryAddressV2,
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
# thirdweb
|
||||
|
||||
## 5.15.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#2875](https://github.com/thirdweb-dev/js/pull/2875) [`7882b22`](https://github.com/thirdweb-dev/js/commit/7882b22306c1ccd4919fe088dfcd7c68bff954f9) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Support for Coinbase Smart Wallet
|
||||
|
||||
- [#2898](https://github.com/thirdweb-dev/js/pull/2898) [`88886ac`](https://github.com/thirdweb-dev/js/commit/88886acd762e637ac130bb7fa0eda12c6e5da4fc) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Adds overrides to extension functions
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2906](https://github.com/thirdweb-dev/js/pull/2906) [`75e66b1`](https://github.com/thirdweb-dev/js/commit/75e66b189d790778358edeacdd71965f248902c2) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Fix signTypedData external verification for smart accounts
|
||||
|
||||
- [#2897](https://github.com/thirdweb-dev/js/pull/2897) [`f916d7a`](https://github.com/thirdweb-dev/js/commit/f916d7a453854bcb8c6f0b9c95b49d34eb865882) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fixes TransactionButton loading state layout shift
|
||||
|
||||
- [#2905](https://github.com/thirdweb-dev/js/pull/2905) [`9a031bb`](https://github.com/thirdweb-dev/js/commit/9a031bb19fe9b39ff88a02c48c311ba5c3184aab) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Bump timeout for userOps receipts to 2mins
|
||||
|
||||
- [#2899](https://github.com/thirdweb-dev/js/pull/2899) [`e6fce1f`](https://github.com/thirdweb-dev/js/commit/e6fce1f2e617c795377ef4de12e2112f1fa03ebb) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fixes useContractEvents duplicating events
|
||||
|
||||
## 5.14.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "thirdweb",
|
||||
"version": "5.14.0",
|
||||
"version": "5.15.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/thirdweb-dev/js.git#main"
|
||||
@@ -174,7 +174,7 @@
|
||||
"!tsconfig.build.json"
|
||||
],
|
||||
"dependencies": {
|
||||
"@coinbase/wallet-sdk": "3.7.2",
|
||||
"@coinbase/wallet-sdk": "4.0.0-rc.2",
|
||||
"@emotion/react": "11.11.4",
|
||||
"@emotion/styled": "11.11.0",
|
||||
"@google/model-viewer": "2.1.1",
|
||||
|
||||
@@ -218,7 +218,7 @@ export function encode${uppercaseFirstLetter(f.name)}(options: ${inputTypeName})
|
||||
: ""
|
||||
}
|
||||
/**
|
||||
* Calls the "${f.name}" function on the contract.
|
||||
* Prepares a transaction to call the "${f.name}" function on the contract.
|
||||
* @param options - The options for the "${f.name}" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ${extensionName.toUpperCase()}
|
||||
@@ -229,8 +229,8 @@ export function encode${uppercaseFirstLetter(f.name)}(options: ${inputTypeName})
|
||||
* const transaction = ${f.name}(${
|
||||
f.inputs.length > 0
|
||||
? `{\n * contract,\n * ${f.inputs
|
||||
.map((x) => ` ${removeLeadingUnderscore(x.name)}: ...,`)
|
||||
.join("\n * ")}\n * }`
|
||||
.map((x) => ` ${removeLeadingUnderscore(x.name)}: ...,`)
|
||||
.join("\n * ")}\n* overrides: {\n* ...\n* }\n * }`
|
||||
: ""
|
||||
});
|
||||
*
|
||||
@@ -269,6 +269,12 @@ export function ${f.name}(
|
||||
.join(", ")}] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
`
|
||||
: ""
|
||||
}
|
||||
@@ -433,8 +439,8 @@ export function decode${uppercaseFirstLetter(f.name)}Result(result: Hex) {
|
||||
* const result = await ${f.name}(${
|
||||
f.inputs.length > 0
|
||||
? `{\n * ${f.inputs
|
||||
.map((x) => ` ${removeLeadingUnderscore(x.name)}: ...,`)
|
||||
.join("\n * ")}\n * }`
|
||||
.map((x) => ` ${removeLeadingUnderscore(x.name)}: ...,`)
|
||||
.join("\n * ")}\n * }`
|
||||
: ""
|
||||
});
|
||||
*
|
||||
@@ -500,8 +506,8 @@ export type ${uppercaseFirstLetter(e.name)}EventFilters = Partial<{
|
||||
* ${eventNameToPreparedEventName(e.name)}(${
|
||||
indexedInputs.length > 0
|
||||
? `{\n * ${indexedInputs
|
||||
.map((x) => ` ${x.name}: ...,`)
|
||||
.join("\n * ")}\n * }`
|
||||
.map((x) => ` ${x.name}: ...,`)
|
||||
.join("\n * ")}\n * }`
|
||||
: ""
|
||||
})
|
||||
* ],
|
||||
|
||||
@@ -16,6 +16,7 @@ export type WatchContractEventsOptions<
|
||||
> = Prettify<
|
||||
GetContractEventsOptionsDirect<abi, abiEvents, TStrict> & {
|
||||
onEvents: (events: ParseEventLogsResult<abiEvents, TStrict>) => void;
|
||||
latestBlockNumber?: bigint;
|
||||
}
|
||||
>;
|
||||
|
||||
@@ -79,5 +80,6 @@ export function watchContractEvents<
|
||||
options.onEvents(logs);
|
||||
}
|
||||
},
|
||||
latestBlockNumber: options.latestBlockNumber,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ export type {
|
||||
ThemeOverrides,
|
||||
} from "../react/web/ui/design-system/index.js";
|
||||
|
||||
export { ConnectButton } from "../react/web/ui/ConnectWallet/ConnectWallet.js";
|
||||
export { ConnectButton } from "../react/web/ui/ConnectWallet/ConnectButton.js";
|
||||
export {
|
||||
ConnectEmbed,
|
||||
type ConnectEmbedProps,
|
||||
@@ -16,7 +16,7 @@ export type {
|
||||
ConnectButton_connectModalOptions,
|
||||
ConnectButton_detailsButtonOptions,
|
||||
ConnectButton_detailsModalOptions,
|
||||
} from "../react/web/ui/ConnectWallet/ConnectWalletProps.js";
|
||||
} from "../react/web/ui/ConnectWallet/ConnectButtonProps.js";
|
||||
export type { NetworkSelectorProps } from "../react/web/ui/ConnectWallet/NetworkSelector.js";
|
||||
export type { WelcomeScreen } from "../react/web/ui/ConnectWallet/screens/types.js";
|
||||
export type { LocaleId } from "../react/web/ui/types.js";
|
||||
|
||||
+11
-1
@@ -128,7 +128,7 @@ export function encodeAirdropERC1155(options: AirdropERC1155Params) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "airdropERC1155" function on the contract.
|
||||
* Prepares a transaction to call the "airdropERC1155" function on the contract.
|
||||
* @param options - The options for the "airdropERC1155" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -140,6 +140,9 @@ export function encodeAirdropERC1155(options: AirdropERC1155Params) {
|
||||
* contract,
|
||||
* tokenAddress: ...,
|
||||
* contents: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -167,5 +170,12 @@ export function airdropERC1155(
|
||||
return [resolvedOptions.tokenAddress, resolvedOptions.contents] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -161,7 +161,7 @@ export function encodeAirdropERC1155WithSignature(
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "airdropERC1155WithSignature" function on the contract.
|
||||
* Prepares a transaction to call the "airdropERC1155WithSignature" function on the contract.
|
||||
* @param options - The options for the "airdropERC1155WithSignature" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -173,6 +173,9 @@ export function encodeAirdropERC1155WithSignature(
|
||||
* contract,
|
||||
* req: ...,
|
||||
* signature: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -200,5 +203,12 @@ export function airdropERC1155WithSignature(
|
||||
return [resolvedOptions.req, resolvedOptions.signature] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -120,7 +120,7 @@ export function encodeAirdropERC20(options: AirdropERC20Params) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "airdropERC20" function on the contract.
|
||||
* Prepares a transaction to call the "airdropERC20" function on the contract.
|
||||
* @param options - The options for the "airdropERC20" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -132,6 +132,9 @@ export function encodeAirdropERC20(options: AirdropERC20Params) {
|
||||
* contract,
|
||||
* tokenAddress: ...,
|
||||
* contents: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -159,5 +162,12 @@ export function airdropERC20(
|
||||
return [resolvedOptions.tokenAddress, resolvedOptions.contents] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -155,7 +155,7 @@ export function encodeAirdropERC20WithSignature(
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "airdropERC20WithSignature" function on the contract.
|
||||
* Prepares a transaction to call the "airdropERC20WithSignature" function on the contract.
|
||||
* @param options - The options for the "airdropERC20WithSignature" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -167,6 +167,9 @@ export function encodeAirdropERC20WithSignature(
|
||||
* contract,
|
||||
* req: ...,
|
||||
* signature: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -194,5 +197,12 @@ export function airdropERC20WithSignature(
|
||||
return [resolvedOptions.req, resolvedOptions.signature] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -122,7 +122,7 @@ export function encodeAirdropERC721(options: AirdropERC721Params) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "airdropERC721" function on the contract.
|
||||
* Prepares a transaction to call the "airdropERC721" function on the contract.
|
||||
* @param options - The options for the "airdropERC721" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -134,6 +134,9 @@ export function encodeAirdropERC721(options: AirdropERC721Params) {
|
||||
* contract,
|
||||
* tokenAddress: ...,
|
||||
* contents: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -161,5 +164,12 @@ export function airdropERC721(
|
||||
return [resolvedOptions.tokenAddress, resolvedOptions.contents] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -155,7 +155,7 @@ export function encodeAirdropERC721WithSignature(
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "airdropERC721WithSignature" function on the contract.
|
||||
* Prepares a transaction to call the "airdropERC721WithSignature" function on the contract.
|
||||
* @param options - The options for the "airdropERC721WithSignature" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -167,6 +167,9 @@ export function encodeAirdropERC721WithSignature(
|
||||
* contract,
|
||||
* req: ...,
|
||||
* signature: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -194,5 +197,12 @@ export function airdropERC721WithSignature(
|
||||
return [resolvedOptions.req, resolvedOptions.signature] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -109,7 +109,7 @@ export function encodeAirdropNativeToken(options: AirdropNativeTokenParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "airdropNativeToken" function on the contract.
|
||||
* Prepares a transaction to call the "airdropNativeToken" function on the contract.
|
||||
* @param options - The options for the "airdropNativeToken" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -120,6 +120,9 @@ export function encodeAirdropNativeToken(options: AirdropNativeTokenParams) {
|
||||
* const transaction = airdropNativeToken({
|
||||
* contract,
|
||||
* contents: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -147,5 +150,12 @@ export function airdropNativeToken(
|
||||
return [resolvedOptions.contents] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -143,7 +143,7 @@ export function encodeClaimERC1155(options: ClaimERC1155Params) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "claimERC1155" function on the contract.
|
||||
* Prepares a transaction to call the "claimERC1155" function on the contract.
|
||||
* @param options - The options for the "claimERC1155" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -158,6 +158,9 @@ export function encodeClaimERC1155(options: ClaimERC1155Params) {
|
||||
* tokenId: ...,
|
||||
* quantity: ...,
|
||||
* proofs: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -191,5 +194,12 @@ export function claimERC1155(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -130,7 +130,7 @@ export function encodeClaimERC20(options: ClaimERC20Params) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "claimERC20" function on the contract.
|
||||
* Prepares a transaction to call the "claimERC20" function on the contract.
|
||||
* @param options - The options for the "claimERC20" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -144,6 +144,9 @@ export function encodeClaimERC20(options: ClaimERC20Params) {
|
||||
* receiver: ...,
|
||||
* quantity: ...,
|
||||
* proofs: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -176,5 +179,12 @@ export function claimERC20(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -130,7 +130,7 @@ export function encodeClaimERC721(options: ClaimERC721Params) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "claimERC721" function on the contract.
|
||||
* Prepares a transaction to call the "claimERC721" function on the contract.
|
||||
* @param options - The options for the "claimERC721" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -144,6 +144,9 @@ export function encodeClaimERC721(options: ClaimERC721Params) {
|
||||
* receiver: ...,
|
||||
* tokenId: ...,
|
||||
* proofs: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -176,5 +179,12 @@ export function claimERC721(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -89,7 +89,7 @@ export function encodeInitialize(options: InitializeParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "initialize" function on the contract.
|
||||
* Prepares a transaction to call the "initialize" function on the contract.
|
||||
* @param options - The options for the "initialize" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -100,6 +100,9 @@ export function encodeInitialize(options: InitializeParams) {
|
||||
* const transaction = initialize({
|
||||
* contract,
|
||||
* defaultAdmin: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -127,5 +130,12 @@ export function initialize(
|
||||
return [resolvedOptions.defaultAdmin] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -119,7 +119,7 @@ export function encodeSetMerkleRoot(options: SetMerkleRootParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setMerkleRoot" function on the contract.
|
||||
* Prepares a transaction to call the "setMerkleRoot" function on the contract.
|
||||
* @param options - The options for the "setMerkleRoot" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -132,6 +132,9 @@ export function encodeSetMerkleRoot(options: SetMerkleRootParams) {
|
||||
* token: ...,
|
||||
* tokenMerkleRoot: ...,
|
||||
* resetClaimStatus: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -163,5 +166,12 @@ export function setMerkleRoot(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -87,7 +87,7 @@ export function encodeSetOwner(options: SetOwnerParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setOwner" function on the contract.
|
||||
* Prepares a transaction to call the "setOwner" function on the contract.
|
||||
* @param options - The options for the "setOwner" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension AIRDROP
|
||||
@@ -98,6 +98,9 @@ export function encodeSetOwner(options: SetOwnerParams) {
|
||||
* const transaction = setOwner({
|
||||
* contract,
|
||||
* newOwner: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -125,5 +128,12 @@ export function setOwner(
|
||||
return [resolvedOptions.newOwner] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -148,7 +148,7 @@ export function encodeSetClaimConditions(options: SetClaimConditionsParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setClaimConditions" function on the contract.
|
||||
* Prepares a transaction to call the "setClaimConditions" function on the contract.
|
||||
* @param options - The options for the "setClaimConditions" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension COMMON
|
||||
@@ -160,6 +160,9 @@ export function encodeSetClaimConditions(options: SetClaimConditionsParams) {
|
||||
* contract,
|
||||
* phase: ...,
|
||||
* resetClaimEligibility: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -190,5 +193,12 @@ export function setClaimConditions(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -86,7 +86,7 @@ export function encodeSetContractURI(options: SetContractURIParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setContractURI" function on the contract.
|
||||
* Prepares a transaction to call the "setContractURI" function on the contract.
|
||||
* @param options - The options for the "setContractURI" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension COMMON
|
||||
@@ -97,6 +97,9 @@ export function encodeSetContractURI(options: SetContractURIParams) {
|
||||
* const transaction = setContractURI({
|
||||
* contract,
|
||||
* uri: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -124,5 +127,12 @@ export function setContractURI(
|
||||
return [resolvedOptions.uri] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -89,7 +89,7 @@ export function encodeMulticall(options: MulticallParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "multicall" function on the contract.
|
||||
* Prepares a transaction to call the "multicall" function on the contract.
|
||||
* @param options - The options for the "multicall" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension COMMON
|
||||
@@ -100,6 +100,9 @@ export function encodeMulticall(options: MulticallParams) {
|
||||
* const transaction = multicall({
|
||||
* contract,
|
||||
* data: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -127,5 +130,12 @@ export function multicall(
|
||||
return [resolvedOptions.data] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -82,7 +82,7 @@ export function encodeSetOwner(options: SetOwnerParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setOwner" function on the contract.
|
||||
* Prepares a transaction to call the "setOwner" function on the contract.
|
||||
* @param options - The options for the "setOwner" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension COMMON
|
||||
@@ -93,6 +93,9 @@ export function encodeSetOwner(options: SetOwnerParams) {
|
||||
* const transaction = setOwner({
|
||||
* contract,
|
||||
* newOwner: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -120,5 +123,12 @@ export function setOwner(
|
||||
return [resolvedOptions.newOwner] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -104,7 +104,7 @@ export function encodeSetPlatformFeeInfo(options: SetPlatformFeeInfoParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setPlatformFeeInfo" function on the contract.
|
||||
* Prepares a transaction to call the "setPlatformFeeInfo" function on the contract.
|
||||
* @param options - The options for the "setPlatformFeeInfo" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension COMMON
|
||||
@@ -116,6 +116,9 @@ export function encodeSetPlatformFeeInfo(options: SetPlatformFeeInfoParams) {
|
||||
* contract,
|
||||
* platformFeeRecipient: ...,
|
||||
* platformFeeBps: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -146,5 +149,12 @@ export function setPlatformFeeInfo(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -93,7 +93,7 @@ export function encodeSetPrimarySaleRecipient(
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setPrimarySaleRecipient" function on the contract.
|
||||
* Prepares a transaction to call the "setPrimarySaleRecipient" function on the contract.
|
||||
* @param options - The options for the "setPrimarySaleRecipient" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension COMMON
|
||||
@@ -104,6 +104,9 @@ export function encodeSetPrimarySaleRecipient(
|
||||
* const transaction = setPrimarySaleRecipient({
|
||||
* contract,
|
||||
* saleRecipient: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -131,5 +134,12 @@ export function setPrimarySaleRecipient(
|
||||
return [resolvedOptions.saleRecipient] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -106,7 +106,7 @@ export function encodeSetDefaultRoyaltyInfo(
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setDefaultRoyaltyInfo" function on the contract.
|
||||
* Prepares a transaction to call the "setDefaultRoyaltyInfo" function on the contract.
|
||||
* @param options - The options for the "setDefaultRoyaltyInfo" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension COMMON
|
||||
@@ -118,6 +118,9 @@ export function encodeSetDefaultRoyaltyInfo(
|
||||
* contract,
|
||||
* royaltyRecipient: ...,
|
||||
* royaltyBps: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -148,5 +151,12 @@ export function setDefaultRoyaltyInfo(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -111,7 +111,7 @@ export function encodeSetRoyaltyInfoForToken(
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setRoyaltyInfoForToken" function on the contract.
|
||||
* Prepares a transaction to call the "setRoyaltyInfoForToken" function on the contract.
|
||||
* @param options - The options for the "setRoyaltyInfoForToken" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension COMMON
|
||||
@@ -124,6 +124,9 @@ export function encodeSetRoyaltyInfoForToken(
|
||||
* tokenId: ...,
|
||||
* recipient: ...,
|
||||
* bps: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -155,5 +158,12 @@ export function setRoyaltyInfoForToken(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -114,7 +114,7 @@ export function encodeGetRoyalty(options: GetRoyaltyParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "getRoyalty" function on the contract.
|
||||
* Prepares a transaction to call the "getRoyalty" function on the contract.
|
||||
* @param options - The options for the "getRoyalty" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension COMMON
|
||||
@@ -127,6 +127,9 @@ export function encodeGetRoyalty(options: GetRoyaltyParams) {
|
||||
* tokenAddress: ...,
|
||||
* tokenId: ...,
|
||||
* value: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -158,5 +161,12 @@ export function getRoyalty(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -89,7 +89,7 @@ export function encodeSetRoyaltyEngine(options: SetRoyaltyEngineParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setRoyaltyEngine" function on the contract.
|
||||
* Prepares a transaction to call the "setRoyaltyEngine" function on the contract.
|
||||
* @param options - The options for the "setRoyaltyEngine" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension COMMON
|
||||
@@ -100,6 +100,9 @@ export function encodeSetRoyaltyEngine(options: SetRoyaltyEngineParams) {
|
||||
* const transaction = setRoyaltyEngine({
|
||||
* contract,
|
||||
* royaltyEngineAddress: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -127,5 +130,12 @@ export function setRoyaltyEngine(
|
||||
return [resolvedOptions.royaltyEngineAddress] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -132,7 +132,7 @@ export function encodeAirdropERC1155(options: AirdropERC1155Params) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "airdropERC1155" function on the contract.
|
||||
* Prepares a transaction to call the "airdropERC1155" function on the contract.
|
||||
* @param options - The options for the "airdropERC1155" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -145,6 +145,9 @@ export function encodeAirdropERC1155(options: AirdropERC1155Params) {
|
||||
* tokenAddress: ...,
|
||||
* tokenOwner: ...,
|
||||
* contents: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -176,5 +179,12 @@ export function airdropERC1155(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -119,7 +119,7 @@ export function encodeClaim(options: ClaimParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "claim" function on the contract.
|
||||
* Prepares a transaction to call the "claim" function on the contract.
|
||||
* @param options - The options for the "claim" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -134,6 +134,9 @@ export function encodeClaim(options: ClaimParams) {
|
||||
* tokenId: ...,
|
||||
* proofs: ...,
|
||||
* proofMaxQuantityForWallet: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -167,5 +170,12 @@ export function claim(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -100,7 +100,7 @@ export function encodeBurn(options: BurnParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "burn" function on the contract.
|
||||
* Prepares a transaction to call the "burn" function on the contract.
|
||||
* @param options - The options for the "burn" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -113,6 +113,9 @@ export function encodeBurn(options: BurnParams) {
|
||||
* account: ...,
|
||||
* id: ...,
|
||||
* value: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -144,5 +147,12 @@ export function burn(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -102,7 +102,7 @@ export function encodeBurnBatch(options: BurnBatchParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "burnBatch" function on the contract.
|
||||
* Prepares a transaction to call the "burnBatch" function on the contract.
|
||||
* @param options - The options for the "burnBatch" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -115,6 +115,9 @@ export function encodeBurnBatch(options: BurnBatchParams) {
|
||||
* account: ...,
|
||||
* ids: ...,
|
||||
* values: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -146,5 +149,12 @@ export function burnBatch(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -100,7 +100,7 @@ export function encodeClaim(options: ClaimParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "claim" function on the contract.
|
||||
* Prepares a transaction to call the "claim" function on the contract.
|
||||
* @param options - The options for the "claim" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -113,6 +113,9 @@ export function encodeClaim(options: ClaimParams) {
|
||||
* receiver: ...,
|
||||
* tokenId: ...,
|
||||
* quantity: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -144,5 +147,12 @@ export function claim(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -162,7 +162,7 @@ export function encodeClaim(options: ClaimParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "claim" function on the contract.
|
||||
* Prepares a transaction to call the "claim" function on the contract.
|
||||
* @param options - The options for the "claim" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -179,6 +179,9 @@ export function encodeClaim(options: ClaimParams) {
|
||||
* pricePerToken: ...,
|
||||
* allowlistProof: ...,
|
||||
* data: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -214,5 +217,12 @@ export function claim(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -156,7 +156,7 @@ export function encodeSetClaimConditions(options: SetClaimConditionsParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setClaimConditions" function on the contract.
|
||||
* Prepares a transaction to call the "setClaimConditions" function on the contract.
|
||||
* @param options - The options for the "setClaimConditions" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -169,6 +169,9 @@ export function encodeSetClaimConditions(options: SetClaimConditionsParams) {
|
||||
* tokenId: ...,
|
||||
* phases: ...,
|
||||
* resetClaimEligibility: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -200,5 +203,12 @@ export function setClaimConditions(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -127,7 +127,7 @@ export function encodeSafeBatchTransferFrom(
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "safeBatchTransferFrom" function on the contract.
|
||||
* Prepares a transaction to call the "safeBatchTransferFrom" function on the contract.
|
||||
* @param options - The options for the "safeBatchTransferFrom" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -142,6 +142,9 @@ export function encodeSafeBatchTransferFrom(
|
||||
* tokenIds: ...,
|
||||
* values: ...,
|
||||
* data: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -175,5 +178,12 @@ export function safeBatchTransferFrom(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -120,7 +120,7 @@ export function encodeSafeTransferFrom(options: SafeTransferFromParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "safeTransferFrom" function on the contract.
|
||||
* Prepares a transaction to call the "safeTransferFrom" function on the contract.
|
||||
* @param options - The options for the "safeTransferFrom" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -135,6 +135,9 @@ export function encodeSafeTransferFrom(options: SafeTransferFromParams) {
|
||||
* tokenId: ...,
|
||||
* value: ...,
|
||||
* data: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -168,5 +171,12 @@ export function safeTransferFrom(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -95,7 +95,7 @@ export function encodeSetApprovalForAll(options: SetApprovalForAllParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "setApprovalForAll" function on the contract.
|
||||
* Prepares a transaction to call the "setApprovalForAll" function on the contract.
|
||||
* @param options - The options for the "setApprovalForAll" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -107,6 +107,9 @@ export function encodeSetApprovalForAll(options: SetApprovalForAllParams) {
|
||||
* contract,
|
||||
* operator: ...,
|
||||
* approved: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -134,5 +137,12 @@ export function setApprovalForAll(
|
||||
return [resolvedOptions.operator, resolvedOptions.approved] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -128,7 +128,7 @@ export function encodeOnERC1155BatchReceived(
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "onERC1155BatchReceived" function on the contract.
|
||||
* Prepares a transaction to call the "onERC1155BatchReceived" function on the contract.
|
||||
* @param options - The options for the "onERC1155BatchReceived" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -143,6 +143,9 @@ export function encodeOnERC1155BatchReceived(
|
||||
* ids: ...,
|
||||
* values: ...,
|
||||
* data: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -176,5 +179,12 @@ export function onERC1155BatchReceived(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -126,7 +126,7 @@ export function encodeOnERC1155Received(options: OnERC1155ReceivedParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "onERC1155Received" function on the contract.
|
||||
* Prepares a transaction to call the "onERC1155Received" function on the contract.
|
||||
* @param options - The options for the "onERC1155Received" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -141,6 +141,9 @@ export function encodeOnERC1155Received(options: OnERC1155ReceivedParams) {
|
||||
* id: ...,
|
||||
* value: ...,
|
||||
* data: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -174,5 +177,12 @@ export function onERC1155Received(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -88,7 +88,7 @@ export function encodeDepositRewardTokens(options: DepositRewardTokensParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "depositRewardTokens" function on the contract.
|
||||
* Prepares a transaction to call the "depositRewardTokens" function on the contract.
|
||||
* @param options - The options for the "depositRewardTokens" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -99,6 +99,9 @@ export function encodeDepositRewardTokens(options: DepositRewardTokensParams) {
|
||||
* const transaction = depositRewardTokens({
|
||||
* contract,
|
||||
* amount: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -126,5 +129,12 @@ export function depositRewardTokens(
|
||||
return [resolvedOptions.amount] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+11
-1
@@ -90,7 +90,7 @@ export function encodeWithdrawRewardTokens(
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "withdrawRewardTokens" function on the contract.
|
||||
* Prepares a transaction to call the "withdrawRewardTokens" function on the contract.
|
||||
* @param options - The options for the "withdrawRewardTokens" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -101,6 +101,9 @@ export function encodeWithdrawRewardTokens(
|
||||
* const transaction = withdrawRewardTokens({
|
||||
* contract,
|
||||
* amount: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -128,5 +131,12 @@ export function withdrawRewardTokens(
|
||||
return [resolvedOptions.amount] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
+11
-1
@@ -108,7 +108,7 @@ export function encodeLazyMint(options: LazyMintParams) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "lazyMint" function on the contract.
|
||||
* Prepares a transaction to call the "lazyMint" function on the contract.
|
||||
* @param options - The options for the "lazyMint" function.
|
||||
* @returns A prepared transaction object.
|
||||
* @extension ERC1155
|
||||
@@ -121,6 +121,9 @@ export function encodeLazyMint(options: LazyMintParams) {
|
||||
* amount: ...,
|
||||
* baseURIForTokens: ...,
|
||||
* extraData: ...,
|
||||
* overrides: {
|
||||
* ...
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Send the transaction
|
||||
@@ -152,5 +155,12 @@ export function lazyMint(
|
||||
] as const;
|
||||
},
|
||||
value: async () => (await asyncOptions()).overrides?.value,
|
||||
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
||||
gas: async () => (await asyncOptions()).overrides?.gas,
|
||||
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
||||
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
||||
maxPriorityFeePerGas: async () =>
|
||||
(await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
||||
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
||||
});
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user