Compare commits
42
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97c6041b15 | ||
|
|
2eb7e945b1 | ||
|
|
e59735b6a2 | ||
|
|
c903ca8af9 | ||
|
|
600a51d509 | ||
|
|
32d923bd70 | ||
|
|
82156cc727 | ||
|
|
349b5c1e02 | ||
|
|
ed639d659d | ||
|
|
a8d93a34c0 | ||
|
|
f6b24a5b06 | ||
|
|
821383e26f | ||
|
|
46ad691a16 | ||
|
|
f9067eb79b | ||
|
|
5bb92c3163 | ||
|
|
00015fa958 | ||
|
|
74640b23bf | ||
|
|
280b786e07 | ||
|
|
127bc50217 | ||
|
|
81e9a4a475 | ||
|
|
6b10e0d9e6 | ||
|
|
c075435be6 | ||
|
|
5731ac2f50 | ||
|
|
5d8654a222 | ||
|
|
c52a43c886 | ||
|
|
5f2c7063f3 | ||
|
|
c7850ac4f7 | ||
|
|
3f77fc8b59 | ||
|
|
c4556a8026 | ||
|
|
a5de09b513 | ||
|
|
f801e97f34 | ||
|
|
02c2b52dda | ||
|
|
ffb43f3789 | ||
|
|
046032711a | ||
|
|
66c1a7007f | ||
|
|
b58361eade | ||
|
|
6f7fa93577 | ||
|
|
b800302e4e | ||
|
|
60e1e706d9 | ||
|
|
e9893cac6c | ||
|
|
88df843a7b | ||
|
|
3abe26cb66 |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
|
||||
"changelog": "@changesets/cli/changelog",
|
||||
"changelog": ["@changesets/changelog-github", { "repo": "thirdweb-dev/js" }],
|
||||
"commit": false,
|
||||
"fixed": [],
|
||||
"linked": [],
|
||||
|
||||
@@ -7,7 +7,7 @@ on:
|
||||
types: [opened, synchronize]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Build
|
||||
run: yarn build
|
||||
|
||||
@@ -23,9 +23,10 @@ jobs:
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Create Release Pull Request or Publish to npm
|
||||
id: changesets
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
name: Integration tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
integration-tests:
|
||||
timeout-minutes: 60
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright install --with-deps
|
||||
|
||||
- name: Run e2e tests
|
||||
run: yarn e2e
|
||||
env:
|
||||
NODE_OPTIONS: "--max_old_space_size=4096"
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: playwright-report
|
||||
path: packages/react/playwright-report/
|
||||
retention-days: 30
|
||||
@@ -5,8 +5,6 @@ on:
|
||||
branches:
|
||||
- main
|
||||
|
||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release Nightly
|
||||
@@ -23,11 +21,12 @@ jobs:
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Create an .npmrc
|
||||
- name: Create an .npmrc for nightly release
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: |
|
||||
@@ -36,6 +35,6 @@ jobs:
|
||||
EOF
|
||||
|
||||
- name: Publish Nightly version to NPM
|
||||
run: yarn ci:release:nightly
|
||||
run: yarn release:nightly
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -1,6 +1,6 @@
|
||||
<p align="center">
|
||||
<br />
|
||||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/typescript-sdk/blob/main/logo.svg?raw=true" width="200" alt=""/></a>
|
||||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/js/blob/main/packages/sdk/logo.svg?raw=true" width="200" alt=""/></a>
|
||||
<br />
|
||||
</p>
|
||||
<h1 align="center">thirdweb JavaScript/TypeScript monorepo</h1>
|
||||
@@ -20,7 +20,7 @@
|
||||
| [/auth](./packages/auth/README.md) | Best in class wallet authentication for Node backends | <a href="https://www.npmjs.com/package/@thirdweb-dev/auth"><img src="https://img.shields.io/npm/v/@thirdweb-dev/auth?color=red&label=npm&logo=npm" alt="npm version"/></a> |
|
||||
| [/storage](./packages/storage/README.md) | Best in class decentralized storage SDK for Browser and Node | <a href="https://www.npmjs.com/package/@thirdweb-dev/storage"><img src="https://img.shields.io/npm/v/@thirdweb-dev/storage?color=red&label=npm&logo=npm" alt="npm version"/></a> |
|
||||
| [/cli](./packages/cli/README.md) | Publish and deploy smart contracts without dealing with private keys | <a href="https://www.npmjs.com/package/thirdweb"><img src="https://img.shields.io/npm/v/thirdweb?color=red&label=npm&logo=npm" alt="npm version"/></a> |
|
||||
| [/solana](./packages/cli/README.md) | Solana SDK for Browser, Node and React Native | <a href="https://www.npmjs.com/package/@thirdweb-dev/solana"><img src="https://img.shields.io/npm/v/@thirdweb-dev/solana?color=red&label=npm&logo=npm" alt="npm version"/></a> |
|
||||
| [/solana](./packages/solana/README.md) | Solana SDK for Browser, Node and React Native | <a href="https://www.npmjs.com/package/@thirdweb-dev/solana"><img src="https://img.shields.io/npm/v/@thirdweb-dev/solana?color=red&label=npm&logo=npm" alt="npm version"/></a> |
|
||||
|
||||
## How this monorepo functions
|
||||
|
||||
|
||||
+8
-3
@@ -12,10 +12,12 @@
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@changesets/changelog-github": "^0.4.6",
|
||||
"@changesets/cli": "^2.24.3",
|
||||
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
|
||||
"eslint": "^8.23.0",
|
||||
"eslint-config-thirdweb": "*",
|
||||
"postinstall-postinstall": "^2.1.0",
|
||||
"prettier": "^2.7.1",
|
||||
"turbo": "latest",
|
||||
"yarn-deduplicate": "^5.0.2"
|
||||
@@ -23,18 +25,21 @@
|
||||
"scripts": {
|
||||
"postinstall": "yarn-deduplicate yarn.lock",
|
||||
"test": "turbo run test",
|
||||
"e2e": "turbo run e2e",
|
||||
"build": "turbo run build",
|
||||
"build:release": "turbo run build --force",
|
||||
"dev": "turbo run dev --no-cache --parallel --continue",
|
||||
"lint": "turbo run lint",
|
||||
"clean": "turbo run clean && rm -rf node_modules",
|
||||
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
||||
"changeset": "changeset",
|
||||
"release": "turbo run build && changeset publish",
|
||||
"ci:release:nightly": "turbo run build && yarn changeset version --snapshot nightly && yarn changeset publish --tag nightly --no-git-tag"
|
||||
"release": "yarn build:release && changeset publish",
|
||||
"release:nightly": "yarn build:release && changeset version --snapshot nightly && changeset publish --tag nightly --no-git-tag"
|
||||
},
|
||||
"preconstruct": {
|
||||
"packages": [
|
||||
"packages/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"packageManager": "[email protected]"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"presets": [
|
||||
"@babel/preset-typescript",
|
||||
"@babel/preset-env"
|
||||
["@babel/preset-env", { "targets": "defaults, not ie 11" }]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,47 @@
|
||||
# @thirdweb-dev/auth
|
||||
|
||||
## 1.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#38](https://github.com/thirdweb-dev/js/pull/38) [`74640b2`](https://github.com/thirdweb-dev/js/commit/74640b23bf2c537f873186d3537e49b3289e8197) Thanks [@adam-maj](https://github.com/adam-maj)! - Add callbacks to express and next auth
|
||||
|
||||
- [#43](https://github.com/thirdweb-dev/js/pull/43) [`821383e`](https://github.com/thirdweb-dev/js/commit/821383e26f0e9f489e49be708a47823ac2de1473) Thanks [@jnsdls](https://github.com/jnsdls)! - export all entrypoints from main package
|
||||
|
||||
- [#39](https://github.com/thirdweb-dev/js/pull/39) [`00015fa`](https://github.com/thirdweb-dev/js/commit/00015fa958fbaea72526f42b95d919382694bbcd) Thanks [@adam-maj](https://github.com/adam-maj)! - Update auth build CI
|
||||
|
||||
- [#44](https://github.com/thirdweb-dev/js/pull/44) [`f6b24a5`](https://github.com/thirdweb-dev/js/commit/f6b24a5b06b034435785a2b788096e834bcefef9) Thanks [@jnsdls](https://github.com/jnsdls)! - attempt to fix auth build
|
||||
|
||||
- [#46](https://github.com/thirdweb-dev/js/pull/46) [`349b5c1`](https://github.com/thirdweb-dev/js/commit/349b5c1e028a06616d40de84257fd8d1cf05df83) Thanks [@jnsdls](https://github.com/jnsdls)! - imrprove babel & tsconfig settings
|
||||
|
||||
- [#47](https://github.com/thirdweb-dev/js/pull/47) [`82156cc`](https://github.com/thirdweb-dev/js/commit/82156cc727166230d301eeaf8fdc422332b06a8e) Thanks [@jnsdls](https://github.com/jnsdls)! - re-enable cache for auth build output
|
||||
|
||||
- [#37](https://github.com/thirdweb-dev/js/pull/37) [`5d8654a`](https://github.com/thirdweb-dev/js/commit/5d8654a22231c6205829f1731f91fb47d3410e98) Thanks [@adam-maj](https://github.com/adam-maj)! - Update user endpoints for express and next
|
||||
|
||||
- [#30](https://github.com/thirdweb-dev/js/pull/30) [`c52a43c`](https://github.com/thirdweb-dev/js/commit/c52a43c8863052b6d1bc9b8c3e1e86d0e1759d39) Thanks [@adam-maj](https://github.com/adam-maj)! - Add support for next-auth
|
||||
|
||||
- Updated dependencies [[`ed639d6`](https://github.com/thirdweb-dev/js/commit/ed639d659d9d746321fb8858212d22cc16d9cd19), [`349b5c1`](https://github.com/thirdweb-dev/js/commit/349b5c1e028a06616d40de84257fd8d1cf05df83), [`46ad691`](https://github.com/thirdweb-dev/js/commit/46ad691a1636dbc7915ade22067ccfa1d39f7851), [`5731ac2`](https://github.com/thirdweb-dev/js/commit/5731ac2f50ef63c243d3a6c2516e85920c325a95), [`5731ac2`](https://github.com/thirdweb-dev/js/commit/5731ac2f50ef63c243d3a6c2516e85920c325a95)]:
|
||||
- @thirdweb-dev/sdk@2.4.2
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 02c2b52: force version
|
||||
- Updated dependencies [02c2b52]
|
||||
- @thirdweb-dev/sdk@2.4.1
|
||||
|
||||
## 1.0.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 3abe26c: initialze monorepo packages
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3abe26c]
|
||||
- @thirdweb-dev/sdk@2.4.0
|
||||
|
||||
## 0.2.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<p align="center">
|
||||
<br />
|
||||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/typescript-sdk/blob/main/logo.svg?raw=true" width="200" alt=""/></a>
|
||||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/js/blob/main/packages/sdk/logo.svg?raw=true" width="200" alt=""/></a>
|
||||
<br />
|
||||
</p>
|
||||
<h1 align="center">thirdweb Auth</h1>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"main": "dist/thirdweb-dev-auth-express.cjs.js"
|
||||
"main": "dist/thirdweb-dev-auth-express.cjs.js",
|
||||
"module": "dist/thirdweb-dev-auth-express.esm.js"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"main": "dist/thirdweb-dev-auth-next-auth.cjs.js",
|
||||
"module": "dist/thirdweb-dev-auth-next-auth.esm.js"
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"main": "dist/thirdweb-dev-auth-next.cjs.js"
|
||||
"main": "dist/thirdweb-dev-auth-next.cjs.js",
|
||||
"module": "dist/thirdweb-dev-auth-next.esm.js"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,21 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/auth",
|
||||
"version": "0.2.1",
|
||||
"version": "1.0.2",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
"./express": {
|
||||
"module": "./express/dist/thirdweb-dev-auth-express.esm.js",
|
||||
"default": "./express/dist/thirdweb-dev-auth-express.cjs.js"
|
||||
},
|
||||
"./next": {
|
||||
"module": "./next/dist/thirdweb-dev-auth-next.esm.js",
|
||||
"default": "./next/dist/thirdweb-dev-auth-express.cjs.js"
|
||||
},
|
||||
"./next-auth": {
|
||||
"module": "./next-auth/dist/thirdweb-dev-auth-next-auth.esm.js",
|
||||
"default": "./next-auth/dist/thirdweb-dev-auth-next-auth.cjs.js"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"directory": "packages/auth",
|
||||
"type": "git",
|
||||
@@ -9,9 +24,10 @@
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
"files": [
|
||||
"dist/",
|
||||
"next/",
|
||||
"express/"
|
||||
"dist/**/*",
|
||||
"next/**/*",
|
||||
"express/**/*",
|
||||
"next-auth/**/*"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "preconstruct build",
|
||||
@@ -20,7 +36,8 @@
|
||||
"preconstruct": {
|
||||
"entrypoints": [
|
||||
"next/index.ts",
|
||||
"express/index.ts"
|
||||
"express/index.ts",
|
||||
"next-auth/index.ts"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -45,6 +62,7 @@
|
||||
"ethers": ">=5.5.1",
|
||||
"express": "^4.18.1",
|
||||
"next": "12.2.0",
|
||||
"next-auth": "^4.10.3",
|
||||
"prettier": "^2.7.1",
|
||||
"typescript": "^4.7.4"
|
||||
},
|
||||
@@ -52,7 +70,19 @@
|
||||
"@thirdweb-dev/sdk": "*",
|
||||
"ethers": ">=5.5.1",
|
||||
"express": "^4.18.1",
|
||||
"next": "12.2.0"
|
||||
"next": "12.2.0",
|
||||
"next-auth": "^4.10.3"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"express": {
|
||||
"optional": true
|
||||
},
|
||||
"next": {
|
||||
"optional": true
|
||||
},
|
||||
"next-auth": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"cookie": "^0.5.0",
|
||||
|
||||
@@ -34,13 +34,18 @@ export function ThirdwebAuth(app: Express, cfg: ThirdwebAuthConfig) {
|
||||
if (token) {
|
||||
try {
|
||||
const address = await sdk.auth.authenticate(domain, token);
|
||||
user = { address };
|
||||
|
||||
if (ctx.callbacks?.user) {
|
||||
user = await ctx.callbacks.user(address);
|
||||
}
|
||||
|
||||
user = { ...user, address };
|
||||
} catch {
|
||||
// No-op
|
||||
}
|
||||
}
|
||||
|
||||
req.user = user;
|
||||
req.user = user as ThirdwebAuthUser | null;
|
||||
next();
|
||||
});
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ThirdwebAuthContext } from "../types";
|
||||
import { LoginPayload } from "@thirdweb-dev/sdk/dist/src/schema";
|
||||
import { LoginPayload } from "@thirdweb-dev/sdk";
|
||||
import { serialize } from "cookie";
|
||||
import { Request, Response } from "express";
|
||||
|
||||
@@ -47,5 +47,10 @@ export default async function handler(
|
||||
})
|
||||
);
|
||||
|
||||
if (ctx.callbacks?.login) {
|
||||
const address = sdk.auth.verify(domain, payload);
|
||||
await ctx.callbacks.login(address);
|
||||
}
|
||||
|
||||
return res.status(301).redirect(req.query.redirect as string);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
import { Request, Response } from "express";
|
||||
|
||||
export default async function handler(req: Request, res: Response) {
|
||||
if (req.method !== "GET") {
|
||||
return res.status(400).json({
|
||||
error: "Invalid method. Only GET supported.",
|
||||
});
|
||||
}
|
||||
|
||||
return res.status(200).json(req.user);
|
||||
}
|
||||
|
||||
@@ -7,15 +7,24 @@ export type ThirdwebAuthConfig = {
|
||||
privateKey: string;
|
||||
domain: string;
|
||||
authUrl?: string;
|
||||
callbacks?: {
|
||||
login?: (address: string) => (Promise<void> | void);
|
||||
user?: (address: string) => (Promise<Omit<ThirdwebAuthUser, "address">> | Omit<ThirdwebAuthUser, "address">);
|
||||
};
|
||||
};
|
||||
|
||||
export type ThirdwebAuthContext = {
|
||||
sdk: ThirdwebSDK;
|
||||
domain: string;
|
||||
callbacks?: {
|
||||
login?: (address: string) => (Promise<void> | void);
|
||||
user?: (address: string) => (Promise<Omit<ThirdwebAuthUser, "address">> | Omit<ThirdwebAuthUser, "address">);
|
||||
};
|
||||
};
|
||||
|
||||
export type ThirdwebAuthUser = {
|
||||
address: string;
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export type RequestWithUser = Request & {
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
import { ThirdwebNextAuthConfig } from "./types";
|
||||
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
|
||||
import { serialize } from "cookie";
|
||||
import { GetServerSidePropsContext, NextApiRequest, NextApiResponse } from "next";
|
||||
import NextAuth, { NextAuthOptions, Session, unstable_getServerSession } from "next-auth";
|
||||
import CredentialsProvider from "next-auth/providers/credentials";
|
||||
|
||||
export function ThirdwebNextAuth(cfg: ThirdwebNextAuthConfig) {
|
||||
const sdk = ThirdwebSDK.fromPrivateKey(cfg.privateKey, "mainnet");
|
||||
|
||||
function ThirdwebProvider(res: GetServerSidePropsContext["res"]) {
|
||||
return CredentialsProvider({
|
||||
name: "ThirdwebAuth",
|
||||
credentials: {
|
||||
payload: {
|
||||
label: "Payload",
|
||||
type: "text",
|
||||
placeholder: "",
|
||||
},
|
||||
},
|
||||
async authorize({ payload }: any) {
|
||||
try {
|
||||
const parsed = JSON.parse(payload);
|
||||
const token = await sdk.auth.generateAuthToken(
|
||||
cfg.domain,
|
||||
parsed
|
||||
);
|
||||
const address = await sdk.auth.authenticate(cfg.domain, token);
|
||||
|
||||
// Securely set httpOnly cookie on request to prevent XSS on frontend
|
||||
// And set path to / to enable thirdweb_auth_token usage on all endpoints
|
||||
res.setHeader(
|
||||
"Set-Cookie",
|
||||
serialize("thirdweb_auth_token", token, {
|
||||
path: "/",
|
||||
httpOnly: true,
|
||||
secure: true,
|
||||
sameSite: "strict",
|
||||
})
|
||||
);
|
||||
|
||||
return { address };
|
||||
} catch (err) {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
function nextOptions (
|
||||
req: GetServerSidePropsContext["req"],
|
||||
res: GetServerSidePropsContext["res"]
|
||||
): NextAuthOptions {
|
||||
|
||||
async function session({ session }: { session: Session }) {
|
||||
const token = req.cookies.thirdweb_auth_token || "";
|
||||
try {
|
||||
const address = await sdk.auth.authenticate(cfg.domain, token);
|
||||
session.user = { ...session.user, address } as Session["user"];
|
||||
return session;
|
||||
} catch {
|
||||
return session;
|
||||
}
|
||||
}
|
||||
|
||||
function signOut() {
|
||||
res.setHeader(
|
||||
"Set-Cookie",
|
||||
serialize("thirdweb_auth_token", "", {
|
||||
path: "/",
|
||||
expires: new Date(Date.now() + 5 * 1000),
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
const providers: NextAuthOptions["providers"] = [
|
||||
...cfg.nextOptions.providers,
|
||||
ThirdwebProvider(res),
|
||||
]
|
||||
|
||||
const configSession = cfg.nextOptions.callbacks?.session
|
||||
const callbacks: NextAuthOptions["callbacks"] = {
|
||||
...cfg.nextOptions.callbacks,
|
||||
session: configSession
|
||||
? async (params) => {
|
||||
params.session = await session(params);
|
||||
return configSession(params);
|
||||
}
|
||||
: session
|
||||
};
|
||||
|
||||
const configSignOut = cfg.nextOptions.events?.signOut
|
||||
const events: NextAuthOptions["events"] = {
|
||||
...cfg.nextOptions.events,
|
||||
signOut: configSignOut
|
||||
? async (params) => {
|
||||
signOut();
|
||||
return configSignOut(params);
|
||||
}
|
||||
: signOut
|
||||
};
|
||||
|
||||
return {
|
||||
...cfg.nextOptions,
|
||||
providers,
|
||||
callbacks,
|
||||
events,
|
||||
};
|
||||
};
|
||||
|
||||
async function getUser(
|
||||
...args:
|
||||
| [NextApiRequest, NextApiResponse]
|
||||
| [GetServerSidePropsContext["req"], GetServerSidePropsContext["res"]]
|
||||
) {
|
||||
return unstable_getServerSession(args[0], args[1], nextOptions(args[0], args[1]));
|
||||
}
|
||||
|
||||
function NextAuthHandler(
|
||||
...args: [] | [NextApiRequest, NextApiResponse]
|
||||
) {
|
||||
if (args.length === 0) {
|
||||
return (req: NextApiRequest, res: NextApiResponse) => {
|
||||
return NextAuth(req, res, nextOptions(req, res));
|
||||
}
|
||||
}
|
||||
|
||||
return NextAuth(args[0], args[1], nextOptions(args[0], args[1]));
|
||||
}
|
||||
|
||||
return {
|
||||
NextAuthHandler,
|
||||
getUser
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { NextAuthOptions } from "next-auth";
|
||||
|
||||
export type ThirdwebNextAuthConfig = {
|
||||
privateKey: string;
|
||||
domain: string;
|
||||
nextOptions: NextAuthOptions;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ThirdwebAuthContext } from "../types";
|
||||
import { LoginPayload } from "@thirdweb-dev/sdk/dist/src/schema";
|
||||
import { LoginPayload } from "@thirdweb-dev/sdk";
|
||||
import { serialize } from "cookie";
|
||||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
@@ -51,5 +51,10 @@ export default async function handler(
|
||||
})
|
||||
);
|
||||
|
||||
if (ctx.callbacks?.login) {
|
||||
const address = sdk.auth.verify(domain, payload);
|
||||
await ctx.callbacks.login(address);
|
||||
}
|
||||
|
||||
return res.status(301).redirect(req.query.redirect as string);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ThirdwebAuthContext } from "../types";
|
||||
import { ThirdwebAuthContext, ThirdwebAuthUser } from "../types";
|
||||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
export default async function handler(
|
||||
@@ -6,6 +6,12 @@ export default async function handler(
|
||||
res: NextApiResponse,
|
||||
ctx: ThirdwebAuthContext
|
||||
) {
|
||||
if (req.method !== "GET") {
|
||||
return res.status(400).json({
|
||||
error: "Invalid method. Only GET supported.",
|
||||
});
|
||||
}
|
||||
|
||||
const { sdk, domain } = ctx;
|
||||
let user = null;
|
||||
const token = req.cookies.thirdweb_auth_token;
|
||||
@@ -13,11 +19,16 @@ export default async function handler(
|
||||
if (token) {
|
||||
try {
|
||||
const address = await sdk.auth.authenticate(domain, token);
|
||||
user = { address };
|
||||
|
||||
if (ctx.callbacks?.user) {
|
||||
user = await ctx.callbacks.user(address);
|
||||
}
|
||||
|
||||
user = { ...user, address };
|
||||
} catch {
|
||||
// No-op
|
||||
}
|
||||
}
|
||||
|
||||
return res.status(200).json(user);
|
||||
return res.status(200).json(user as ThirdwebAuthUser | null);
|
||||
}
|
||||
|
||||
@@ -5,13 +5,22 @@ export type ThirdwebAuthRoute = "login" | "logout" | "user";
|
||||
export type ThirdwebAuthConfig = {
|
||||
privateKey: string;
|
||||
domain: string;
|
||||
callbacks?: {
|
||||
login?: (address: string) => (Promise<void> | void);
|
||||
user?: (address: string) => (Promise<Omit<ThirdwebAuthUser, "address">> | Omit<ThirdwebAuthUser, "address">);
|
||||
};
|
||||
};
|
||||
|
||||
export type ThirdwebAuthContext = {
|
||||
sdk: ThirdwebSDK;
|
||||
domain: string;
|
||||
callbacks?: {
|
||||
login?: (address: string) => (Promise<void> | void);
|
||||
user?: (address: string) => (Promise<Omit<ThirdwebAuthUser, "address">> | Omit<ThirdwebAuthUser, "address">);
|
||||
};
|
||||
};
|
||||
|
||||
export type ThirdwebAuthUser = {
|
||||
address: string;
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,47 @@
|
||||
# thirdweb
|
||||
|
||||
## 0.7.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#42](https://github.com/thirdweb-dev/js/pull/42) [`46ad691`](https://github.com/thirdweb-dev/js/commit/46ad691a1636dbc7915ade22067ccfa1d39f7851) Thanks [@jnsdls](https://github.com/jnsdls)! - switch build to tsup
|
||||
|
||||
- [#34](https://github.com/thirdweb-dev/js/pull/34) [`5731ac2`](https://github.com/thirdweb-dev/js/commit/5731ac2f50ef63c243d3a6c2516e85920c325a95) Thanks [@jnsdls](https://github.com/jnsdls)! - add e2e tests
|
||||
|
||||
- Updated dependencies [[`ed639d6`](https://github.com/thirdweb-dev/js/commit/ed639d659d9d746321fb8858212d22cc16d9cd19), [`349b5c1`](https://github.com/thirdweb-dev/js/commit/349b5c1e028a06616d40de84257fd8d1cf05df83), [`46ad691`](https://github.com/thirdweb-dev/js/commit/46ad691a1636dbc7915ade22067ccfa1d39f7851), [`5731ac2`](https://github.com/thirdweb-dev/js/commit/5731ac2f50ef63c243d3a6c2516e85920c325a95), [`5731ac2`](https://github.com/thirdweb-dev/js/commit/5731ac2f50ef63c243d3a6c2516e85920c325a95)]:
|
||||
- @thirdweb-dev/sdk@2.4.2
|
||||
|
||||
## 0.7.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 02c2b52: force version
|
||||
- Updated dependencies [02c2b52]
|
||||
- @thirdweb-dev/sdk@2.4.1
|
||||
|
||||
## 0.7.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 66c1a70: version cli & fix typo
|
||||
|
||||
## 0.7.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- b800302: fix the build (ESM package)
|
||||
|
||||
## 0.7.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 3abe26c: initialze monorepo packages
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3abe26c]
|
||||
- @thirdweb-dev/sdk@2.4.0
|
||||
|
||||
## 0.6.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<p align="center">
|
||||
<br />
|
||||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/typescript-sdk/blob/main/logo.svg?raw=true" width="200" alt=""/></a>
|
||||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/js/blob/main/packages/sdk/logo.svg?raw=true" width="200" alt=""/></a>
|
||||
<br />
|
||||
</p>
|
||||
<h1 align="center">thirdweb CLI</h1>
|
||||
@@ -62,7 +62,7 @@ Deploying released contracts give deployers access to automatic SDKs to integrat
|
||||
npx thirdweb@latest detect
|
||||
```
|
||||
|
||||
As you're developing your contracts, you may want to implement [Contract Extensions](https://portal.thirdweb.com/thirdweb-deploy/contract-extensions) to unlock functionality on the SDKs (ie. nft minting with automatic upload to IPFS) and the dashboard (ie. generated UI to manage permissions). This command will show what extensions were detected on your contract, unlocking the corresponding functionality on the SDKs and dashboard.
|
||||
As you're developing your contracts, you may want to implement [Extensions](https://portal.thirdweb.com/extensions) to unlock functionality on the SDKs (ie. nft minting with automatic upload to IPFS) and the dashboard (ie. generated UI to manage permissions). This command will show what extensions were detected on your contract, unlocking the corresponding functionality on the SDKs and dashboard.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
import { prepareEnvironment } from "@gmrchk/cli-testing-library";
|
||||
|
||||
// this creates an app, can take some time that's fine
|
||||
jest.setTimeout(120_000);
|
||||
|
||||
describe("npx thirdweb create", () => {
|
||||
it("should create app successfully", async () => {
|
||||
const { spawn, cleanup, exists } = await prepareEnvironment();
|
||||
const {
|
||||
// wait,
|
||||
waitForText,
|
||||
waitForFinish,
|
||||
// getStdout,
|
||||
// getStderr,
|
||||
getExitCode,
|
||||
// debug,
|
||||
pressKey,
|
||||
} = await spawn("node", "./dist/cli/index.js create");
|
||||
|
||||
await waitForText("What type of project do you want to create?");
|
||||
await pressKey("enter");
|
||||
await waitForText("What is your project named?");
|
||||
await pressKey("enter");
|
||||
await waitForText("What framework do you want to use?");
|
||||
await pressKey("arrowDown");
|
||||
await pressKey("enter");
|
||||
await waitForText("What language do you want to use?");
|
||||
await pressKey("enter");
|
||||
|
||||
// wait for program to finish
|
||||
await waitForFinish();
|
||||
|
||||
//check if the app was created
|
||||
expect(await exists("thirdweb-app/package.json")).toEqual(true);
|
||||
|
||||
// the process should exit with code 0
|
||||
expect(getExitCode()).toEqual(0);
|
||||
|
||||
await cleanup(); // cleanup after test
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "thirdweb",
|
||||
"main": "dist/cli/index.js",
|
||||
"version": "0.6.16",
|
||||
"version": "0.7.4",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com:thirdweb-dev/js.git",
|
||||
@@ -13,9 +13,11 @@
|
||||
"node": ">=14.0.0 <19"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gmrchk/cli-testing-library": "^0.1.2",
|
||||
"@types/async-retry": "1.3.0",
|
||||
"@types/cross-spawn": "^6.0.2",
|
||||
"@types/inquirer": "^8.2.1",
|
||||
"@types/jest": "^29.0.0",
|
||||
"@types/node": "^18.0.0",
|
||||
"@types/prompts": "^2.0.14",
|
||||
"@types/rimraf": "^3.0.0",
|
||||
@@ -23,7 +25,9 @@
|
||||
"@types/update-notifier": "^5.1.0",
|
||||
"@types/validate-npm-package-name": "^4.0.0",
|
||||
"hardhat": "^2.9.3",
|
||||
"jest": "^29.0.1",
|
||||
"prettier": "^2.6.2",
|
||||
"ts-jest": "^28.0.8",
|
||||
"ts-node": "^10.7.0",
|
||||
"tsc": "^2.0.4",
|
||||
"tsup": "^6.2.3",
|
||||
@@ -42,7 +46,6 @@
|
||||
"inquirer": "^8.2.3",
|
||||
"ipfs-unixfs": "^6.0.7",
|
||||
"ipld-dag-pb": "^0.22.3",
|
||||
"isomorphic-fetch": "^3.0.0",
|
||||
"multihashes": "^4.0.3",
|
||||
"open": "^8.4.0",
|
||||
"prompts": "^2.4.2",
|
||||
@@ -64,8 +67,8 @@
|
||||
"cli": "node -r ts-node/register src/cli/index.ts",
|
||||
"build": "yarn clean && tsc --noEmit && tsup --env.NODE_ENV production --minify --format cjs --external hardhat --dts-resolve",
|
||||
"build:watch": "yarn run build --watch",
|
||||
"prepublishOnly": "yarn build",
|
||||
"generate-thirdweb-package": "node scripts/generate-thirdweb-package.js"
|
||||
"generate-thirdweb-package": "node scripts/generate-thirdweb-package.js",
|
||||
"e2e": "jest"
|
||||
},
|
||||
"files": [
|
||||
"src/",
|
||||
|
||||
@@ -9,7 +9,6 @@ import generateDashboardUrl from "../helpers/generate-dashboard-url";
|
||||
import chalk from "chalk";
|
||||
import { Command } from "commander";
|
||||
import open from "open";
|
||||
import updateNotifier from "update-notifier";
|
||||
|
||||
const main = async () => {
|
||||
const program = new Command();
|
||||
@@ -25,12 +24,14 @@ $$$$$$\\ $$$$$$$\\ $$\\ $$$$$$\\ $$$$$$$ |$$\\ $$\\ $$\\ $$$$$$\\ $$$$
|
||||
\\$$$$ |$$ | $$ |$$ |$$ | \\$$$$$$$ |\\$$$$$\\$$$$ |\\$$$$$$$\\ $$$$$$$ |
|
||||
\\____/ \\__| \\__|\\__|\\__| \\_______| \\_____\\____/ \\_______|\\_______/ `);
|
||||
console.info(`\n 💎 thirdweb-cli v${cliVersion} 💎\n`);
|
||||
updateNotifier({
|
||||
pkg,
|
||||
shouldNotifyInNpmScript: true,
|
||||
//check every time while we're still building the CLI
|
||||
updateCheckInterval: 0,
|
||||
}).notify();
|
||||
import("update-notifier").then(({ default: updateNotifier }) => {
|
||||
updateNotifier({
|
||||
pkg,
|
||||
shouldNotifyInNpmScript: true,
|
||||
//check every time while we're still building the CLI
|
||||
updateCheckInterval: 0,
|
||||
}).notify();
|
||||
});
|
||||
|
||||
program
|
||||
.name("thirdweb-cli")
|
||||
@@ -58,7 +59,7 @@ $$$$$$\\ $$$$$$$\\ $$\\ $$$$$$\\ $$$$$$$ |$$\\ $$\\ $$\\ $$$$$$\\ $$$$
|
||||
.option("--ci", "Continuous Integration mode")
|
||||
.action(async (options) => {
|
||||
logger.warn(
|
||||
"'publish' is deprecated adn will be removed in a future update. Please use 'release' instead.",
|
||||
"'publish' is deprecated and will be removed in a future update. Please use 'release' instead.",
|
||||
);
|
||||
const url = await processProject(options, "release");
|
||||
info(`Open this link to release your contracts:`);
|
||||
|
||||
@@ -5,14 +5,11 @@ import { logger, spinner, warn, info } from "../core/helpers/logger";
|
||||
import { createContractsPrompt } from "../core/helpers/selector";
|
||||
import { ContractFeatures, Feature } from "../core/interfaces/ContractFeatures";
|
||||
import { ContractPayload } from "../core/interfaces/ContractPayload";
|
||||
import { detectFeatures } from "@thirdweb-dev/sdk";
|
||||
import { FeatureWithEnabled } from "@thirdweb-dev/sdk/dist/declarations/src/constants/contract-features";
|
||||
import { detectFeatures, FeatureWithEnabled } from "@thirdweb-dev/sdk";
|
||||
import chalk from "chalk";
|
||||
import ora from "ora";
|
||||
import path from "path";
|
||||
|
||||
const { MultiSelect } = require("enquirer");
|
||||
|
||||
export async function detectExtensions(options: any) {
|
||||
logger.setSettings({
|
||||
minLevel: options.debug ? "debug" : "info",
|
||||
|
||||
@@ -49,7 +49,7 @@ export class SolcBuilder extends BaseBuilder {
|
||||
return { contents: readFileSync(nodeModulesPath, "utf-8") };
|
||||
}
|
||||
return {
|
||||
error: "file not fount",
|
||||
error: "file not found",
|
||||
};
|
||||
},
|
||||
}),
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{
|
||||
"presets": ["@babel/preset-typescript", "@babel/preset-env"]
|
||||
"presets": [
|
||||
"@babel/preset-typescript",
|
||||
["@babel/preset-env", { "targets": "defaults, not ie 11" }]
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
# @thirdweb-dev/contracts-js
|
||||
|
||||
## 1.1.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#52](https://github.com/thirdweb-dev/js/pull/52) [`2eb7e94`](https://github.com/thirdweb-dev/js/commit/2eb7e945b14fd47fc46408d90499888c1f87ca94) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Support for audited Pack contract
|
||||
|
||||
## 1.1.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#36](https://github.com/thirdweb-dev/js/pull/36) [`127bc50`](https://github.com/thirdweb-dev/js/commit/127bc50217139345dd44a09114a9bec2c3ac9e97) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Update to Contracts SDK v3.1.5
|
||||
|
||||
- [#46](https://github.com/thirdweb-dev/js/pull/46) [`349b5c1`](https://github.com/thirdweb-dev/js/commit/349b5c1e028a06616d40de84257fd8d1cf05df83) Thanks [@jnsdls](https://github.com/jnsdls)! - imrprove babel & tsconfig settings
|
||||
|
||||
- [#30](https://github.com/thirdweb-dev/js/pull/30) [`c52a43c`](https://github.com/thirdweb-dev/js/commit/c52a43c8863052b6d1bc9b8c3e1e86d0e1759d39) Thanks [@adam-maj](https://github.com/adam-maj)! - Pin contracts to v3.1.3
|
||||
|
||||
- [#34](https://github.com/thirdweb-dev/js/pull/34) [`5731ac2`](https://github.com/thirdweb-dev/js/commit/5731ac2f50ef63c243d3a6c2516e85920c325a95) Thanks [@jnsdls](https://github.com/jnsdls)! - pin `@thirdweb-dev/contracts` version
|
||||
|
||||
## 1.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 3abe26c: initialze monorepo packages
|
||||
@@ -323,34 +323,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256[]",
|
||||
"name": "_tokenIds",
|
||||
"type": "uint256[]"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256[]",
|
||||
"name": "_amounts",
|
||||
"type": "uint256[]"
|
||||
},
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"name": "batchMintTo",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -397,6 +369,29 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_receiver",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_tokenId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_quantity",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "claim",
|
||||
"outputs": [],
|
||||
"stateMutability": "payable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "contractURI",
|
||||
@@ -623,34 +618,6 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_tokenId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_amount",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "mintTo",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -982,5 +949,28 @@
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_claimer",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_tokenId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_quantity",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "verifyClaim",
|
||||
"outputs": [],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}
|
||||
]
|
||||
@@ -304,34 +304,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256[]",
|
||||
"name": "_tokenIds",
|
||||
"type": "uint256[]"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256[]",
|
||||
"name": "_amounts",
|
||||
"type": "uint256[]"
|
||||
},
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"name": "batchMintTo",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -378,6 +350,29 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_receiver",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_tokenId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_quantity",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "claim",
|
||||
"outputs": [],
|
||||
"stateMutability": "payable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "contractURI",
|
||||
@@ -518,34 +513,6 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_tokenId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_amount",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "mintTo",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -853,5 +820,28 @@
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_claimer",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_tokenId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_quantity",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "verifyClaim",
|
||||
"outputs": [],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}
|
||||
]
|
||||
@@ -334,34 +334,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_quantity",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "_data",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"name": "batchMintTo",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -375,6 +347,24 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_receiver",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_quantity",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "claim",
|
||||
"outputs": [],
|
||||
"stateMutability": "payable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "contractURI",
|
||||
@@ -572,30 +562,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_operator",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_tokenId",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "isApprovedOrOwner",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "isApprovedOrOwnerOf",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -644,24 +610,6 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"name": "mintTo",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -694,6 +642,19 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "nextTokenIdToClaim",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "nextTokenIdToMint",
|
||||
@@ -1014,5 +975,23 @@
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_claimer",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_quantity",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "verifyClaim",
|
||||
"outputs": [],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}
|
||||
]
|
||||
@@ -856,6 +856,19 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "nextTokenIdToClaim",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "nextTokenIdToMint",
|
||||
|
||||
@@ -315,34 +315,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_quantity",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "_data",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"name": "batchMintTo",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -356,6 +328,24 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_receiver",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_quantity",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "claim",
|
||||
"outputs": [],
|
||||
"stateMutability": "payable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "contractURI",
|
||||
@@ -486,30 +476,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_operator",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_tokenId",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "isApprovedOrOwner",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "isApprovedOrOwnerOf",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -539,24 +505,6 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"name": "mintTo",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -589,6 +537,19 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "nextTokenIdToClaim",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "nextTokenIdToMint",
|
||||
@@ -885,5 +846,23 @@
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_claimer",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_quantity",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "verifyClaim",
|
||||
"outputs": [],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}
|
||||
]
|
||||
@@ -431,19 +431,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "NATIVE_TOKEN",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "TRANSFER_ROLE",
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
[
|
||||
{
|
||||
"inputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "gas",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "nonce",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "data",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"internalType": "struct MinimalForwarderEOAOnly.ForwardRequest",
|
||||
"name": "req",
|
||||
"type": "tuple"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "signature",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"name": "execute",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"stateMutability": "payable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "getNonce",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "gas",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "nonce",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "data",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"internalType": "struct MinimalForwarderEOAOnly.ForwardRequest",
|
||||
"name": "req",
|
||||
"type": "tuple"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "signature",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"name": "verify",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}
|
||||
]
|
||||
@@ -8,12 +8,6 @@
|
||||
"name": "packId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "packCreator",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "address",
|
||||
@@ -83,6 +77,31 @@
|
||||
"name": "PackOpened",
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
"anonymous": false,
|
||||
"inputs": [
|
||||
{
|
||||
"indexed": true,
|
||||
"internalType": "uint256",
|
||||
"name": "packId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "address",
|
||||
"name": "recipient",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "totalPacksCreated",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "PackUpdated",
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
|
||||
@@ -5,11 +5,6 @@
|
||||
"internalType": "address",
|
||||
"name": "_nativeTokenWrapper",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_thirdwebFee",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "nonpayable",
|
||||
@@ -1177,19 +1172,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "thirdwebFee",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "contract ITWFee",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "timeBuffer",
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
[
|
||||
{
|
||||
"inputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "gas",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "nonce",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "data",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"internalType": "struct MinimalForwarderEOAOnly.ForwardRequest",
|
||||
"name": "req",
|
||||
"type": "tuple"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "signature",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"name": "execute",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"stateMutability": "payable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "getNonce",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "to",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "gas",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "nonce",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "data",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"internalType": "struct MinimalForwarderEOAOnly.ForwardRequest",
|
||||
"name": "req",
|
||||
"type": "tuple"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "signature",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"name": "verify",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}
|
||||
]
|
||||
@@ -333,19 +333,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "NATIVE_TOKEN",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
|
||||
@@ -5,6 +5,11 @@
|
||||
"internalType": "address",
|
||||
"name": "_nativeTokenWrapper",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_trustedForwarder",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "nonpayable",
|
||||
@@ -101,12 +106,6 @@
|
||||
"name": "packId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "packCreator",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "address",
|
||||
@@ -179,14 +178,26 @@
|
||||
{
|
||||
"anonymous": false,
|
||||
"inputs": [
|
||||
{
|
||||
"indexed": true,
|
||||
"internalType": "uint256",
|
||||
"name": "packId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "address",
|
||||
"name": "account",
|
||||
"name": "recipient",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "totalPacksCreated",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "Paused",
|
||||
"name": "PackUpdated",
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
@@ -382,19 +393,6 @@
|
||||
"name": "URI",
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
"anonymous": false,
|
||||
"inputs": [
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "address",
|
||||
"name": "account",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "Unpaused",
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "DEFAULT_ADMIN_ROLE",
|
||||
@@ -409,16 +407,64 @@
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "NATIVE_TOKEN",
|
||||
"outputs": [
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_packId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "assetContract",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "enum ITokenBundle.TokenType",
|
||||
"name": "tokenType",
|
||||
"type": "uint8"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "tokenId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "totalAmount",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"internalType": "struct ITokenBundle.Token[]",
|
||||
"name": "_contents",
|
||||
"type": "tuple[]"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256[]",
|
||||
"name": "_numOfRewardUnits",
|
||||
"type": "uint256[]"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "",
|
||||
"name": "_recipient",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"name": "addPackContents",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "packTotalSupply",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "newSupplyAdded",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability": "payable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
@@ -469,6 +515,25 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "canUpdatePack",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "contractType",
|
||||
@@ -901,11 +966,6 @@
|
||||
"name": "_contractURI",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"internalType": "address[]",
|
||||
"name": "_trustedForwarders",
|
||||
"type": "address[]"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_royaltyRecipient",
|
||||
@@ -1181,19 +1241,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "paused",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
[
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_thirdwebFee",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"inputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
},
|
||||
@@ -607,19 +601,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "thirdwebFee",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "contract ITWFee",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
[
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_thirdwebFee",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"inputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
},
|
||||
@@ -1336,19 +1330,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "thirdwebFee",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "contract ITWFee",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
[
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_thirdwebFee",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"inputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
},
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
[
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_thirdwebFee",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"inputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
},
|
||||
@@ -1229,19 +1223,6 @@
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "thirdwebFee",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "contract ITWFee",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
|
||||
@@ -10,19 +10,6 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "NATIVE_TOKEN",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/contracts-js",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.2",
|
||||
"main": "dist/thirdweb-dev-contracts-js.cjs.js",
|
||||
"module": "dist/thirdweb-dev-contracts-js.esm.js",
|
||||
"license": "Apache-2.0",
|
||||
@@ -10,7 +10,7 @@
|
||||
"url": "https://github.com/thirdweb-dev/js.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@thirdweb-dev/contracts": "^3.1.3"
|
||||
"@thirdweb-dev/contracts": "3.1.6-1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "^7.18.10",
|
||||
|
||||
@@ -23,6 +23,7 @@ import type {
|
||||
CallOverrides,
|
||||
ContractTransaction,
|
||||
Overrides,
|
||||
PayableOverrides,
|
||||
PopulatedTransaction,
|
||||
Signer,
|
||||
utils,
|
||||
@@ -32,9 +33,9 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
functions: {
|
||||
"balanceOf(address,uint256)": FunctionFragment;
|
||||
"balanceOfBatch(address[],uint256[])": FunctionFragment;
|
||||
"batchMintTo(address,uint256[],uint256[],string)": FunctionFragment;
|
||||
"burn(address,uint256,uint256)": FunctionFragment;
|
||||
"burnBatch(address,uint256[],uint256[])": FunctionFragment;
|
||||
"claim(address,uint256,uint256)": FunctionFragment;
|
||||
"contractURI()": FunctionFragment;
|
||||
"encryptDecrypt(bytes,bytes)": FunctionFragment;
|
||||
"encryptedData(uint256)": FunctionFragment;
|
||||
@@ -46,7 +47,6 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
"isApprovedForAll(address,address)": FunctionFragment;
|
||||
"isEncryptedBatch(uint256)": FunctionFragment;
|
||||
"lazyMint(uint256,string,bytes)": FunctionFragment;
|
||||
"mintTo(address,uint256,string,uint256)": FunctionFragment;
|
||||
"multicall(bytes[])": FunctionFragment;
|
||||
"name()": FunctionFragment;
|
||||
"nextTokenIdToMint()": FunctionFragment;
|
||||
@@ -64,15 +64,16 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
"symbol()": FunctionFragment;
|
||||
"totalSupply(uint256)": FunctionFragment;
|
||||
"uri(uint256)": FunctionFragment;
|
||||
"verifyClaim(address,uint256,uint256)": FunctionFragment;
|
||||
};
|
||||
|
||||
getFunction(
|
||||
nameOrSignatureOrTopic:
|
||||
| "balanceOf"
|
||||
| "balanceOfBatch"
|
||||
| "batchMintTo"
|
||||
| "burn"
|
||||
| "burnBatch"
|
||||
| "claim"
|
||||
| "contractURI"
|
||||
| "encryptDecrypt"
|
||||
| "encryptedData"
|
||||
@@ -84,7 +85,6 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
| "isApprovedForAll"
|
||||
| "isEncryptedBatch"
|
||||
| "lazyMint"
|
||||
| "mintTo"
|
||||
| "multicall"
|
||||
| "name"
|
||||
| "nextTokenIdToMint"
|
||||
@@ -102,6 +102,7 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
| "symbol"
|
||||
| "totalSupply"
|
||||
| "uri"
|
||||
| "verifyClaim"
|
||||
): FunctionFragment;
|
||||
|
||||
encodeFunctionData(
|
||||
@@ -112,10 +113,6 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
functionFragment: "balanceOfBatch",
|
||||
values: [string[], BigNumberish[]]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "batchMintTo",
|
||||
values: [string, BigNumberish[], BigNumberish[], string]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "burn",
|
||||
values: [string, BigNumberish, BigNumberish]
|
||||
@@ -124,6 +121,10 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
functionFragment: "burnBatch",
|
||||
values: [string, BigNumberish[], BigNumberish[]]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "claim",
|
||||
values: [string, BigNumberish, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "contractURI",
|
||||
values?: undefined
|
||||
@@ -168,10 +169,6 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
functionFragment: "lazyMint",
|
||||
values: [BigNumberish, string, BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "mintTo",
|
||||
values: [string, BigNumberish, string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "multicall",
|
||||
values: [BytesLike[]]
|
||||
@@ -225,18 +222,19 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
values: [BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "uri", values: [BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "verifyClaim",
|
||||
values: [string, BigNumberish, BigNumberish]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "balanceOfBatch",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "batchMintTo",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "burnBatch", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "contractURI",
|
||||
data: BytesLike
|
||||
@@ -278,7 +276,6 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "lazyMint", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "mintTo", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
@@ -326,6 +323,10 @@ export interface ERC1155DelayedRevealInterface extends utils.Interface {
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "uri", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "verifyClaim",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
|
||||
events: {
|
||||
"ApprovalForAll(address,address,bool)": EventFragment;
|
||||
@@ -511,14 +512,6 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<[BigNumber[]]>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_tokenIds: BigNumberish[],
|
||||
_amounts: BigNumberish[],
|
||||
arg3: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
burn(
|
||||
_owner: string,
|
||||
_tokenId: BigNumberish,
|
||||
@@ -533,6 +526,13 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
encryptDecrypt(
|
||||
@@ -584,14 +584,6 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
_tokenId: BigNumberish,
|
||||
arg2: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -677,6 +669,13 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
): Promise<[BigNumber]>;
|
||||
|
||||
uri(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[void]>;
|
||||
};
|
||||
|
||||
balanceOf(
|
||||
@@ -691,14 +690,6 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber[]>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_tokenIds: BigNumberish[],
|
||||
_amounts: BigNumberish[],
|
||||
arg3: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
burn(
|
||||
_owner: string,
|
||||
_tokenId: BigNumberish,
|
||||
@@ -713,6 +704,13 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
encryptDecrypt(
|
||||
@@ -761,14 +759,6 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
_tokenId: BigNumberish,
|
||||
arg2: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -855,6 +845,13 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
|
||||
uri(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
callStatic: {
|
||||
balanceOf(
|
||||
arg0: string,
|
||||
@@ -868,14 +865,6 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber[]>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_tokenIds: BigNumberish[],
|
||||
_amounts: BigNumberish[],
|
||||
arg3: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
burn(
|
||||
_owner: string,
|
||||
_tokenId: BigNumberish,
|
||||
@@ -890,6 +879,13 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
encryptDecrypt(
|
||||
@@ -941,14 +937,6 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
_tokenId: BigNumberish,
|
||||
arg2: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
multicall(data: BytesLike[], overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
@@ -1025,6 +1013,13 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
): Promise<BigNumber>;
|
||||
|
||||
uri(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
@@ -1149,14 +1144,6 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_tokenIds: BigNumberish[],
|
||||
_amounts: BigNumberish[],
|
||||
arg3: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
burn(
|
||||
_owner: string,
|
||||
_tokenId: BigNumberish,
|
||||
@@ -1171,6 +1158,13 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
encryptDecrypt(
|
||||
@@ -1222,14 +1216,6 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
_tokenId: BigNumberish,
|
||||
arg2: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1313,6 +1299,13 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
): Promise<BigNumber>;
|
||||
|
||||
uri(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
@@ -1328,14 +1321,6 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_tokenIds: BigNumberish[],
|
||||
_amounts: BigNumberish[],
|
||||
arg3: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
burn(
|
||||
_owner: string,
|
||||
_tokenId: BigNumberish,
|
||||
@@ -1350,6 +1335,13 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
encryptDecrypt(
|
||||
@@ -1403,14 +1395,6 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
_tokenId: BigNumberish,
|
||||
arg2: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1497,5 +1481,12 @@ export interface ERC1155DelayedReveal extends BaseContract {
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import type {
|
||||
CallOverrides,
|
||||
ContractTransaction,
|
||||
Overrides,
|
||||
PayableOverrides,
|
||||
PopulatedTransaction,
|
||||
Signer,
|
||||
utils,
|
||||
@@ -32,9 +33,9 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
functions: {
|
||||
"balanceOf(address,uint256)": FunctionFragment;
|
||||
"balanceOfBatch(address[],uint256[])": FunctionFragment;
|
||||
"batchMintTo(address,uint256[],uint256[],string)": FunctionFragment;
|
||||
"burn(address,uint256,uint256)": FunctionFragment;
|
||||
"burnBatch(address,uint256[],uint256[])": FunctionFragment;
|
||||
"claim(address,uint256,uint256)": FunctionFragment;
|
||||
"contractURI()": FunctionFragment;
|
||||
"getBaseURICount()": FunctionFragment;
|
||||
"getBatchIdAtIndex(uint256)": FunctionFragment;
|
||||
@@ -42,7 +43,6 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
"getRoyaltyInfoForToken(uint256)": FunctionFragment;
|
||||
"isApprovedForAll(address,address)": FunctionFragment;
|
||||
"lazyMint(uint256,string,bytes)": FunctionFragment;
|
||||
"mintTo(address,uint256,string,uint256)": FunctionFragment;
|
||||
"multicall(bytes[])": FunctionFragment;
|
||||
"name()": FunctionFragment;
|
||||
"nextTokenIdToMint()": FunctionFragment;
|
||||
@@ -59,15 +59,16 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
"symbol()": FunctionFragment;
|
||||
"totalSupply(uint256)": FunctionFragment;
|
||||
"uri(uint256)": FunctionFragment;
|
||||
"verifyClaim(address,uint256,uint256)": FunctionFragment;
|
||||
};
|
||||
|
||||
getFunction(
|
||||
nameOrSignatureOrTopic:
|
||||
| "balanceOf"
|
||||
| "balanceOfBatch"
|
||||
| "batchMintTo"
|
||||
| "burn"
|
||||
| "burnBatch"
|
||||
| "claim"
|
||||
| "contractURI"
|
||||
| "getBaseURICount"
|
||||
| "getBatchIdAtIndex"
|
||||
@@ -75,7 +76,6 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
| "getRoyaltyInfoForToken"
|
||||
| "isApprovedForAll"
|
||||
| "lazyMint"
|
||||
| "mintTo"
|
||||
| "multicall"
|
||||
| "name"
|
||||
| "nextTokenIdToMint"
|
||||
@@ -92,6 +92,7 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
| "symbol"
|
||||
| "totalSupply"
|
||||
| "uri"
|
||||
| "verifyClaim"
|
||||
): FunctionFragment;
|
||||
|
||||
encodeFunctionData(
|
||||
@@ -102,10 +103,6 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
functionFragment: "balanceOfBatch",
|
||||
values: [string[], BigNumberish[]]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "batchMintTo",
|
||||
values: [string, BigNumberish[], BigNumberish[], string]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "burn",
|
||||
values: [string, BigNumberish, BigNumberish]
|
||||
@@ -114,6 +111,10 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
functionFragment: "burnBatch",
|
||||
values: [string, BigNumberish[], BigNumberish[]]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "claim",
|
||||
values: [string, BigNumberish, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "contractURI",
|
||||
values?: undefined
|
||||
@@ -142,10 +143,6 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
functionFragment: "lazyMint",
|
||||
values: [BigNumberish, string, BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "mintTo",
|
||||
values: [string, BigNumberish, string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "multicall",
|
||||
values: [BytesLike[]]
|
||||
@@ -195,18 +192,19 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
values: [BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "uri", values: [BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "verifyClaim",
|
||||
values: [string, BigNumberish, BigNumberish]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "balanceOfBatch",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "batchMintTo",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "burnBatch", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "contractURI",
|
||||
data: BytesLike
|
||||
@@ -232,7 +230,6 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "lazyMint", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "mintTo", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
@@ -279,6 +276,10 @@ export interface ERC1155LazyMintInterface extends utils.Interface {
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "uri", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "verifyClaim",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
|
||||
events: {
|
||||
"ApprovalForAll(address,address,bool)": EventFragment;
|
||||
@@ -450,14 +451,6 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<[BigNumber[]]>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_tokenIds: BigNumberish[],
|
||||
_amounts: BigNumberish[],
|
||||
arg3: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
burn(
|
||||
_owner: string,
|
||||
_tokenId: BigNumberish,
|
||||
@@ -472,6 +465,13 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
getBaseURICount(overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
@@ -501,14 +501,6 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
_tokenId: BigNumberish,
|
||||
arg2: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -588,6 +580,13 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
): Promise<[BigNumber]>;
|
||||
|
||||
uri(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[void]>;
|
||||
};
|
||||
|
||||
balanceOf(
|
||||
@@ -602,14 +601,6 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber[]>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_tokenIds: BigNumberish[],
|
||||
_amounts: BigNumberish[],
|
||||
arg3: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
burn(
|
||||
_owner: string,
|
||||
_tokenId: BigNumberish,
|
||||
@@ -624,6 +615,13 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getBaseURICount(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
@@ -653,14 +651,6 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
_tokenId: BigNumberish,
|
||||
arg2: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -741,6 +731,13 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
|
||||
uri(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
callStatic: {
|
||||
balanceOf(
|
||||
arg0: string,
|
||||
@@ -754,14 +751,6 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber[]>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_tokenIds: BigNumberish[],
|
||||
_amounts: BigNumberish[],
|
||||
arg3: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
burn(
|
||||
_owner: string,
|
||||
_tokenId: BigNumberish,
|
||||
@@ -776,6 +765,13 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getBaseURICount(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
@@ -805,14 +801,6 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
_tokenId: BigNumberish,
|
||||
arg2: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
multicall(data: BytesLike[], overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
@@ -883,6 +871,13 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
): Promise<BigNumber>;
|
||||
|
||||
uri(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
@@ -998,14 +993,6 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_tokenIds: BigNumberish[],
|
||||
_amounts: BigNumberish[],
|
||||
arg3: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
burn(
|
||||
_owner: string,
|
||||
_tokenId: BigNumberish,
|
||||
@@ -1020,6 +1007,13 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getBaseURICount(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
@@ -1049,14 +1043,6 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
_tokenId: BigNumberish,
|
||||
arg2: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1134,6 +1120,13 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
): Promise<BigNumber>;
|
||||
|
||||
uri(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
@@ -1149,14 +1142,6 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_tokenIds: BigNumberish[],
|
||||
_amounts: BigNumberish[],
|
||||
arg3: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
burn(
|
||||
_owner: string,
|
||||
_tokenId: BigNumberish,
|
||||
@@ -1171,6 +1156,13 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getBaseURICount(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
@@ -1202,14 +1194,6 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
_tokenId: BigNumberish,
|
||||
arg2: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1290,5 +1274,12 @@ export interface ERC1155LazyMint extends BaseContract {
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_tokenId: BigNumberish,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import type {
|
||||
CallOverrides,
|
||||
ContractTransaction,
|
||||
Overrides,
|
||||
PayableOverrides,
|
||||
PopulatedTransaction,
|
||||
Signer,
|
||||
utils,
|
||||
@@ -32,8 +33,8 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
functions: {
|
||||
"approve(address,uint256)": FunctionFragment;
|
||||
"balanceOf(address)": FunctionFragment;
|
||||
"batchMintTo(address,uint256,string,bytes)": FunctionFragment;
|
||||
"burn(uint256)": FunctionFragment;
|
||||
"claim(address,uint256)": FunctionFragment;
|
||||
"contractURI()": FunctionFragment;
|
||||
"encryptDecrypt(bytes,bytes)": FunctionFragment;
|
||||
"encryptedData(uint256)": FunctionFragment;
|
||||
@@ -44,12 +45,11 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
"getRevealURI(uint256,bytes)": FunctionFragment;
|
||||
"getRoyaltyInfoForToken(uint256)": FunctionFragment;
|
||||
"isApprovedForAll(address,address)": FunctionFragment;
|
||||
"isApprovedOrOwner(address,uint256)": FunctionFragment;
|
||||
"isEncryptedBatch(uint256)": FunctionFragment;
|
||||
"lazyMint(uint256,string,bytes)": FunctionFragment;
|
||||
"mintTo(address,string)": FunctionFragment;
|
||||
"multicall(bytes[])": FunctionFragment;
|
||||
"name()": FunctionFragment;
|
||||
"nextTokenIdToClaim()": FunctionFragment;
|
||||
"nextTokenIdToMint()": FunctionFragment;
|
||||
"owner()": FunctionFragment;
|
||||
"ownerOf(uint256)": FunctionFragment;
|
||||
@@ -67,14 +67,15 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
"tokenURI(uint256)": FunctionFragment;
|
||||
"totalSupply()": FunctionFragment;
|
||||
"transferFrom(address,address,uint256)": FunctionFragment;
|
||||
"verifyClaim(address,uint256)": FunctionFragment;
|
||||
};
|
||||
|
||||
getFunction(
|
||||
nameOrSignatureOrTopic:
|
||||
| "approve"
|
||||
| "balanceOf"
|
||||
| "batchMintTo"
|
||||
| "burn"
|
||||
| "claim"
|
||||
| "contractURI"
|
||||
| "encryptDecrypt"
|
||||
| "encryptedData"
|
||||
@@ -85,12 +86,11 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
| "getRevealURI"
|
||||
| "getRoyaltyInfoForToken"
|
||||
| "isApprovedForAll"
|
||||
| "isApprovedOrOwner"
|
||||
| "isEncryptedBatch"
|
||||
| "lazyMint"
|
||||
| "mintTo"
|
||||
| "multicall"
|
||||
| "name"
|
||||
| "nextTokenIdToClaim"
|
||||
| "nextTokenIdToMint"
|
||||
| "owner"
|
||||
| "ownerOf"
|
||||
@@ -108,6 +108,7 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
| "tokenURI"
|
||||
| "totalSupply"
|
||||
| "transferFrom"
|
||||
| "verifyClaim"
|
||||
): FunctionFragment;
|
||||
|
||||
encodeFunctionData(
|
||||
@@ -115,11 +116,11 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "batchMintTo",
|
||||
values: [string, BigNumberish, string, BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "burn", values: [BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "claim",
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "contractURI",
|
||||
values?: undefined
|
||||
@@ -160,10 +161,6 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
functionFragment: "isApprovedForAll",
|
||||
values: [string, string]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "isApprovedOrOwner",
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "isEncryptedBatch",
|
||||
values: [BigNumberish]
|
||||
@@ -172,15 +169,15 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
functionFragment: "lazyMint",
|
||||
values: [BigNumberish, string, BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "mintTo",
|
||||
values: [string, string]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "multicall",
|
||||
values: [BytesLike[]]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "nextTokenIdToClaim",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "nextTokenIdToMint",
|
||||
values?: undefined
|
||||
@@ -240,14 +237,15 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
functionFragment: "transferFrom",
|
||||
values: [string, string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "verifyClaim",
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "batchMintTo",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "contractURI",
|
||||
data: BytesLike
|
||||
@@ -288,18 +286,17 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
functionFragment: "isApprovedForAll",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "isApprovedOrOwner",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "isEncryptedBatch",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "lazyMint", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "mintTo", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "nextTokenIdToClaim",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "nextTokenIdToMint",
|
||||
data: BytesLike
|
||||
@@ -350,6 +347,10 @@ export interface ERC721DelayedRevealInterface extends utils.Interface {
|
||||
functionFragment: "transferFrom",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "verifyClaim",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
|
||||
events: {
|
||||
"Approval(address,address,uint256)": EventFragment;
|
||||
@@ -517,19 +518,17 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
|
||||
balanceOf(owner: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_quantity: BigNumberish,
|
||||
arg2: string,
|
||||
_data: BytesLike,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
burn(
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
encryptDecrypt(
|
||||
@@ -574,12 +573,6 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean]>;
|
||||
|
||||
isApprovedOrOwner(
|
||||
_operator: string,
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean] & { isApprovedOrOwnerOf: boolean }>;
|
||||
|
||||
isEncryptedBatch(
|
||||
_batchId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -592,12 +585,6 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
arg1: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -605,6 +592,8 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<[string]>;
|
||||
@@ -692,6 +681,12 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[void]>;
|
||||
};
|
||||
|
||||
approve(
|
||||
@@ -702,19 +697,17 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
|
||||
balanceOf(owner: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_quantity: BigNumberish,
|
||||
arg2: string,
|
||||
_data: BytesLike,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
burn(
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
encryptDecrypt(
|
||||
@@ -756,12 +749,6 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
isApprovedOrOwner(
|
||||
_operator: string,
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
isEncryptedBatch(
|
||||
_batchId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -774,12 +761,6 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
arg1: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -787,6 +768,8 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
@@ -869,6 +852,12 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
callStatic: {
|
||||
approve(
|
||||
to: string,
|
||||
@@ -878,16 +867,14 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
|
||||
balanceOf(owner: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
burn(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_quantity: BigNumberish,
|
||||
arg2: string,
|
||||
_data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
burn(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
encryptDecrypt(
|
||||
@@ -932,12 +919,6 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
isApprovedOrOwner(
|
||||
_operator: string,
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
isEncryptedBatch(
|
||||
_batchId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -950,12 +931,12 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
mintTo(_to: string, arg1: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
multicall(data: BytesLike[], overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
@@ -1034,6 +1015,12 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
@@ -1140,19 +1127,17 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
|
||||
balanceOf(owner: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_quantity: BigNumberish,
|
||||
arg2: string,
|
||||
_data: BytesLike,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
burn(
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
encryptDecrypt(
|
||||
@@ -1197,12 +1182,6 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
isApprovedOrOwner(
|
||||
_operator: string,
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
isEncryptedBatch(
|
||||
_batchId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -1215,12 +1194,6 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
arg1: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1228,6 +1201,8 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
@@ -1313,6 +1288,12 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
@@ -1327,19 +1308,17 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_quantity: BigNumberish,
|
||||
arg2: string,
|
||||
_data: BytesLike,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
burn(
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
encryptDecrypt(
|
||||
@@ -1386,12 +1365,6 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
isApprovedOrOwner(
|
||||
_operator: string,
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
isEncryptedBatch(
|
||||
_batchId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -1404,12 +1377,6 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
arg1: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1417,6 +1384,10 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
nextTokenIdToClaim(
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
@@ -1502,5 +1473,11 @@ export interface ERC721DelayedReveal extends BaseContract {
|
||||
tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -96,6 +96,7 @@ export interface ERC721DropInterface extends utils.Interface {
|
||||
"lazyMint(uint256,string,bytes)": FunctionFragment;
|
||||
"multicall(bytes[])": FunctionFragment;
|
||||
"name()": FunctionFragment;
|
||||
"nextTokenIdToClaim()": FunctionFragment;
|
||||
"nextTokenIdToMint()": FunctionFragment;
|
||||
"owner()": FunctionFragment;
|
||||
"ownerOf(uint256)": FunctionFragment;
|
||||
@@ -142,6 +143,7 @@ export interface ERC721DropInterface extends utils.Interface {
|
||||
| "lazyMint"
|
||||
| "multicall"
|
||||
| "name"
|
||||
| "nextTokenIdToClaim"
|
||||
| "nextTokenIdToMint"
|
||||
| "owner"
|
||||
| "ownerOf"
|
||||
@@ -244,6 +246,10 @@ export interface ERC721DropInterface extends utils.Interface {
|
||||
values: [BytesLike[]]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "nextTokenIdToClaim",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "nextTokenIdToMint",
|
||||
values?: undefined
|
||||
@@ -383,6 +389,10 @@ export interface ERC721DropInterface extends utils.Interface {
|
||||
decodeFunctionResult(functionFragment: "lazyMint", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "nextTokenIdToClaim",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "nextTokenIdToMint",
|
||||
data: BytesLike
|
||||
@@ -776,6 +786,8 @@ export interface ERC721Drop extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<[string]>;
|
||||
@@ -1016,6 +1028,8 @@ export interface ERC721Drop extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
@@ -1247,6 +1261,8 @@ export interface ERC721Drop extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
@@ -1579,6 +1595,8 @@ export interface ERC721Drop extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
@@ -1794,6 +1812,10 @@ export interface ERC721Drop extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
nextTokenIdToClaim(
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
@@ -23,6 +23,7 @@ import type {
|
||||
CallOverrides,
|
||||
ContractTransaction,
|
||||
Overrides,
|
||||
PayableOverrides,
|
||||
PopulatedTransaction,
|
||||
Signer,
|
||||
utils,
|
||||
@@ -32,8 +33,8 @@ export interface ERC721LazyMintInterface extends utils.Interface {
|
||||
functions: {
|
||||
"approve(address,uint256)": FunctionFragment;
|
||||
"balanceOf(address)": FunctionFragment;
|
||||
"batchMintTo(address,uint256,string,bytes)": FunctionFragment;
|
||||
"burn(uint256)": FunctionFragment;
|
||||
"claim(address,uint256)": FunctionFragment;
|
||||
"contractURI()": FunctionFragment;
|
||||
"getApproved(uint256)": FunctionFragment;
|
||||
"getBaseURICount()": FunctionFragment;
|
||||
@@ -41,11 +42,10 @@ export interface ERC721LazyMintInterface extends utils.Interface {
|
||||
"getDefaultRoyaltyInfo()": FunctionFragment;
|
||||
"getRoyaltyInfoForToken(uint256)": FunctionFragment;
|
||||
"isApprovedForAll(address,address)": FunctionFragment;
|
||||
"isApprovedOrOwner(address,uint256)": FunctionFragment;
|
||||
"lazyMint(uint256,string,bytes)": FunctionFragment;
|
||||
"mintTo(address,string)": FunctionFragment;
|
||||
"multicall(bytes[])": FunctionFragment;
|
||||
"name()": FunctionFragment;
|
||||
"nextTokenIdToClaim()": FunctionFragment;
|
||||
"nextTokenIdToMint()": FunctionFragment;
|
||||
"owner()": FunctionFragment;
|
||||
"ownerOf(uint256)": FunctionFragment;
|
||||
@@ -62,14 +62,15 @@ export interface ERC721LazyMintInterface extends utils.Interface {
|
||||
"tokenURI(uint256)": FunctionFragment;
|
||||
"totalSupply()": FunctionFragment;
|
||||
"transferFrom(address,address,uint256)": FunctionFragment;
|
||||
"verifyClaim(address,uint256)": FunctionFragment;
|
||||
};
|
||||
|
||||
getFunction(
|
||||
nameOrSignatureOrTopic:
|
||||
| "approve"
|
||||
| "balanceOf"
|
||||
| "batchMintTo"
|
||||
| "burn"
|
||||
| "claim"
|
||||
| "contractURI"
|
||||
| "getApproved"
|
||||
| "getBaseURICount"
|
||||
@@ -77,11 +78,10 @@ export interface ERC721LazyMintInterface extends utils.Interface {
|
||||
| "getDefaultRoyaltyInfo"
|
||||
| "getRoyaltyInfoForToken"
|
||||
| "isApprovedForAll"
|
||||
| "isApprovedOrOwner"
|
||||
| "lazyMint"
|
||||
| "mintTo"
|
||||
| "multicall"
|
||||
| "name"
|
||||
| "nextTokenIdToClaim"
|
||||
| "nextTokenIdToMint"
|
||||
| "owner"
|
||||
| "ownerOf"
|
||||
@@ -98,6 +98,7 @@ export interface ERC721LazyMintInterface extends utils.Interface {
|
||||
| "tokenURI"
|
||||
| "totalSupply"
|
||||
| "transferFrom"
|
||||
| "verifyClaim"
|
||||
): FunctionFragment;
|
||||
|
||||
encodeFunctionData(
|
||||
@@ -105,11 +106,11 @@ export interface ERC721LazyMintInterface extends utils.Interface {
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "batchMintTo",
|
||||
values: [string, BigNumberish, string, BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "burn", values: [BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "claim",
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "contractURI",
|
||||
values?: undefined
|
||||
@@ -138,23 +139,19 @@ export interface ERC721LazyMintInterface extends utils.Interface {
|
||||
functionFragment: "isApprovedForAll",
|
||||
values: [string, string]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "isApprovedOrOwner",
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "lazyMint",
|
||||
values: [BigNumberish, string, BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "mintTo",
|
||||
values: [string, string]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "multicall",
|
||||
values: [BytesLike[]]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "nextTokenIdToClaim",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "nextTokenIdToMint",
|
||||
values?: undefined
|
||||
@@ -210,14 +207,15 @@ export interface ERC721LazyMintInterface extends utils.Interface {
|
||||
functionFragment: "transferFrom",
|
||||
values: [string, string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "verifyClaim",
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "batchMintTo",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "contractURI",
|
||||
data: BytesLike
|
||||
@@ -246,14 +244,13 @@ export interface ERC721LazyMintInterface extends utils.Interface {
|
||||
functionFragment: "isApprovedForAll",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "isApprovedOrOwner",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "lazyMint", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "mintTo", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "nextTokenIdToClaim",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "nextTokenIdToMint",
|
||||
data: BytesLike
|
||||
@@ -303,6 +300,10 @@ export interface ERC721LazyMintInterface extends utils.Interface {
|
||||
functionFragment: "transferFrom",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "verifyClaim",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
|
||||
events: {
|
||||
"Approval(address,address,uint256)": EventFragment;
|
||||
@@ -456,19 +457,17 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
|
||||
balanceOf(owner: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_quantity: BigNumberish,
|
||||
arg2: string,
|
||||
_data: BytesLike,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
burn(
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
getApproved(
|
||||
@@ -496,12 +495,6 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean]>;
|
||||
|
||||
isApprovedOrOwner(
|
||||
_operator: string,
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean] & { isApprovedOrOwnerOf: boolean }>;
|
||||
|
||||
lazyMint(
|
||||
_amount: BigNumberish,
|
||||
_baseURIForTokens: string,
|
||||
@@ -509,12 +502,6 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
arg1: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -522,6 +509,8 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<[string]>;
|
||||
@@ -603,6 +592,12 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[void]>;
|
||||
};
|
||||
|
||||
approve(
|
||||
@@ -613,19 +608,17 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
|
||||
balanceOf(owner: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_quantity: BigNumberish,
|
||||
arg2: string,
|
||||
_data: BytesLike,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
burn(
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getApproved(
|
||||
@@ -653,12 +646,6 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
isApprovedOrOwner(
|
||||
_operator: string,
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
lazyMint(
|
||||
_amount: BigNumberish,
|
||||
_baseURIForTokens: string,
|
||||
@@ -666,12 +653,6 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
arg1: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -679,6 +660,8 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
@@ -755,6 +738,12 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
callStatic: {
|
||||
approve(
|
||||
to: string,
|
||||
@@ -764,16 +753,14 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
|
||||
balanceOf(owner: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
burn(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_quantity: BigNumberish,
|
||||
arg2: string,
|
||||
_data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
burn(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getApproved(
|
||||
@@ -801,12 +788,6 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
isApprovedOrOwner(
|
||||
_operator: string,
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
lazyMint(
|
||||
_amount: BigNumberish,
|
||||
_baseURIForTokens: string,
|
||||
@@ -814,12 +795,12 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
mintTo(_to: string, arg1: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
multicall(data: BytesLike[], overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
@@ -892,6 +873,12 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
@@ -989,19 +976,17 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
|
||||
balanceOf(owner: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_quantity: BigNumberish,
|
||||
arg2: string,
|
||||
_data: BytesLike,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
burn(
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getApproved(
|
||||
@@ -1029,12 +1014,6 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
isApprovedOrOwner(
|
||||
_operator: string,
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
lazyMint(
|
||||
_amount: BigNumberish,
|
||||
_baseURIForTokens: string,
|
||||
@@ -1042,12 +1021,6 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
arg1: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1055,6 +1028,8 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToClaim(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
@@ -1134,6 +1109,12 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
@@ -1148,19 +1129,17 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
batchMintTo(
|
||||
_to: string,
|
||||
_quantity: BigNumberish,
|
||||
arg2: string,
|
||||
_data: BytesLike,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
burn(
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
claim(
|
||||
_receiver: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getApproved(
|
||||
@@ -1190,12 +1169,6 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
isApprovedOrOwner(
|
||||
_operator: string,
|
||||
_tokenId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
lazyMint(
|
||||
_amount: BigNumberish,
|
||||
_baseURIForTokens: string,
|
||||
@@ -1203,12 +1176,6 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
mintTo(
|
||||
_to: string,
|
||||
arg1: string,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
multicall(
|
||||
data: BytesLike[],
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1216,6 +1183,10 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
|
||||
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
nextTokenIdToClaim(
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
nextTokenIdToMint(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
@@ -1295,5 +1266,11 @@ export interface ERC721LazyMint extends BaseContract {
|
||||
tokenId: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
verifyClaim(
|
||||
_claimer: string,
|
||||
_quantity: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -48,7 +48,6 @@ export declare namespace ITokenBundle {
|
||||
export interface ERC721MultiwrapInterface extends utils.Interface {
|
||||
functions: {
|
||||
"DEFAULT_ADMIN_ROLE()": FunctionFragment;
|
||||
"NATIVE_TOKEN()": FunctionFragment;
|
||||
"TRANSFER_ROLE()": FunctionFragment;
|
||||
"approve(address,uint256)": FunctionFragment;
|
||||
"balanceOf(address)": FunctionFragment;
|
||||
@@ -98,7 +97,6 @@ export interface ERC721MultiwrapInterface extends utils.Interface {
|
||||
getFunction(
|
||||
nameOrSignatureOrTopic:
|
||||
| "DEFAULT_ADMIN_ROLE"
|
||||
| "NATIVE_TOKEN"
|
||||
| "TRANSFER_ROLE"
|
||||
| "approve"
|
||||
| "balanceOf"
|
||||
@@ -149,10 +147,6 @@ export interface ERC721MultiwrapInterface extends utils.Interface {
|
||||
functionFragment: "DEFAULT_ADMIN_ROLE",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "NATIVE_TOKEN",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "TRANSFER_ROLE",
|
||||
values?: undefined
|
||||
@@ -319,10 +313,6 @@ export interface ERC721MultiwrapInterface extends utils.Interface {
|
||||
functionFragment: "DEFAULT_ADMIN_ROLE",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "NATIVE_TOKEN",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "TRANSFER_ROLE",
|
||||
data: BytesLike
|
||||
@@ -673,8 +663,6 @@ export interface ERC721Multiwrap extends BaseContract {
|
||||
functions: {
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
TRANSFER_ROLE(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
approve(
|
||||
@@ -906,8 +894,6 @@ export interface ERC721Multiwrap extends BaseContract {
|
||||
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
TRANSFER_ROLE(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
approve(
|
||||
@@ -1133,8 +1119,6 @@ export interface ERC721Multiwrap extends BaseContract {
|
||||
callStatic: {
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
TRANSFER_ROLE(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
approve(
|
||||
@@ -1490,8 +1474,6 @@ export interface ERC721Multiwrap extends BaseContract {
|
||||
estimateGas: {
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
TRANSFER_ROLE(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
approve(
|
||||
@@ -1727,8 +1709,6 @@ export interface ERC721Multiwrap extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
TRANSFER_ROLE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
approve(
|
||||
|
||||
@@ -0,0 +1,190 @@
|
||||
/* Autogenerated file. Do not edit manually. */
|
||||
|
||||
/* tslint:disable */
|
||||
|
||||
/* eslint-disable */
|
||||
import type {
|
||||
TypedEventFilter,
|
||||
TypedEvent,
|
||||
TypedListener,
|
||||
OnEvent,
|
||||
} from "./common";
|
||||
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
||||
import type { Listener, Provider } from "@ethersproject/providers";
|
||||
import type {
|
||||
BaseContract,
|
||||
BigNumber,
|
||||
BigNumberish,
|
||||
BytesLike,
|
||||
CallOverrides,
|
||||
ContractTransaction,
|
||||
PayableOverrides,
|
||||
PopulatedTransaction,
|
||||
Signer,
|
||||
utils,
|
||||
} from "ethers";
|
||||
|
||||
export declare namespace MinimalForwarderEOAOnly {
|
||||
export type ForwardRequestStruct = {
|
||||
from: string;
|
||||
to: string;
|
||||
value: BigNumberish;
|
||||
gas: BigNumberish;
|
||||
nonce: BigNumberish;
|
||||
data: BytesLike;
|
||||
};
|
||||
|
||||
export type ForwardRequestStructOutput = [
|
||||
string,
|
||||
string,
|
||||
BigNumber,
|
||||
BigNumber,
|
||||
BigNumber,
|
||||
string
|
||||
] & {
|
||||
from: string;
|
||||
to: string;
|
||||
value: BigNumber;
|
||||
gas: BigNumber;
|
||||
nonce: BigNumber;
|
||||
data: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ForwarderEOAOnlyInterface extends utils.Interface {
|
||||
functions: {
|
||||
"execute((address,address,uint256,uint256,uint256,bytes),bytes)": FunctionFragment;
|
||||
"getNonce(address)": FunctionFragment;
|
||||
"verify((address,address,uint256,uint256,uint256,bytes),bytes)": FunctionFragment;
|
||||
};
|
||||
|
||||
getFunction(
|
||||
nameOrSignatureOrTopic: "execute" | "getNonce" | "verify"
|
||||
): FunctionFragment;
|
||||
|
||||
encodeFunctionData(
|
||||
functionFragment: "execute",
|
||||
values: [MinimalForwarderEOAOnly.ForwardRequestStruct, BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "getNonce", values: [string]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "verify",
|
||||
values: [MinimalForwarderEOAOnly.ForwardRequestStruct, BytesLike]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: "execute", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "getNonce", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "verify", data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export interface ForwarderEOAOnly extends BaseContract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
interface: ForwarderEOAOnlyInterface;
|
||||
|
||||
queryFilter<TEvent extends TypedEvent>(
|
||||
event: TypedEventFilter<TEvent>,
|
||||
fromBlockOrBlockhash?: string | number | undefined,
|
||||
toBlock?: string | number | undefined
|
||||
): Promise<Array<TEvent>>;
|
||||
|
||||
listeners<TEvent extends TypedEvent>(
|
||||
eventFilter?: TypedEventFilter<TEvent>
|
||||
): Array<TypedListener<TEvent>>;
|
||||
listeners(eventName?: string): Array<Listener>;
|
||||
removeAllListeners<TEvent extends TypedEvent>(
|
||||
eventFilter: TypedEventFilter<TEvent>
|
||||
): this;
|
||||
removeAllListeners(eventName?: string): this;
|
||||
off: OnEvent<this>;
|
||||
on: OnEvent<this>;
|
||||
once: OnEvent<this>;
|
||||
removeListener: OnEvent<this>;
|
||||
|
||||
functions: {
|
||||
execute(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
getNonce(from: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
verify(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean]>;
|
||||
};
|
||||
|
||||
execute(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
getNonce(from: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
verify(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
callStatic: {
|
||||
execute(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean, string]>;
|
||||
|
||||
getNonce(from: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
verify(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
execute(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getNonce(from: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
verify(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
execute(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getNonce(
|
||||
from: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
verify(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
||||
@@ -75,22 +75,23 @@ export interface IPackInterface extends utils.Interface {
|
||||
decodeFunctionResult(functionFragment: "openPack", data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
"PackCreated(uint256,address,address,uint256)": EventFragment;
|
||||
"PackCreated(uint256,address,uint256)": EventFragment;
|
||||
"PackOpened(uint256,address,uint256,tuple[])": EventFragment;
|
||||
"PackUpdated(uint256,address,uint256)": EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: "PackCreated"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "PackOpened"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "PackUpdated"): EventFragment;
|
||||
}
|
||||
|
||||
export interface PackCreatedEventObject {
|
||||
packId: BigNumber;
|
||||
packCreator: string;
|
||||
recipient: string;
|
||||
totalPacksCreated: BigNumber;
|
||||
}
|
||||
export type PackCreatedEvent = TypedEvent<
|
||||
[BigNumber, string, string, BigNumber],
|
||||
[BigNumber, string, BigNumber],
|
||||
PackCreatedEventObject
|
||||
>;
|
||||
|
||||
@@ -109,6 +110,18 @@ export type PackOpenedEvent = TypedEvent<
|
||||
|
||||
export type PackOpenedEventFilter = TypedEventFilter<PackOpenedEvent>;
|
||||
|
||||
export interface PackUpdatedEventObject {
|
||||
packId: BigNumber;
|
||||
recipient: string;
|
||||
totalPacksCreated: BigNumber;
|
||||
}
|
||||
export type PackUpdatedEvent = TypedEvent<
|
||||
[BigNumber, string, BigNumber],
|
||||
PackUpdatedEventObject
|
||||
>;
|
||||
|
||||
export type PackUpdatedEventFilter = TypedEventFilter<PackUpdatedEvent>;
|
||||
|
||||
export interface IPack extends BaseContract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
@@ -190,15 +203,13 @@ export interface IPack extends BaseContract {
|
||||
};
|
||||
|
||||
filters: {
|
||||
"PackCreated(uint256,address,address,uint256)"(
|
||||
"PackCreated(uint256,address,uint256)"(
|
||||
packId?: BigNumberish | null,
|
||||
packCreator?: string | null,
|
||||
recipient?: null,
|
||||
totalPacksCreated?: null
|
||||
): PackCreatedEventFilter;
|
||||
PackCreated(
|
||||
packId?: BigNumberish | null,
|
||||
packCreator?: string | null,
|
||||
recipient?: null,
|
||||
totalPacksCreated?: null
|
||||
): PackCreatedEventFilter;
|
||||
@@ -215,6 +226,17 @@ export interface IPack extends BaseContract {
|
||||
numOfPacksOpened?: null,
|
||||
rewardUnitsDistributed?: null
|
||||
): PackOpenedEventFilter;
|
||||
|
||||
"PackUpdated(uint256,address,uint256)"(
|
||||
packId?: BigNumberish | null,
|
||||
recipient?: null,
|
||||
totalPacksCreated?: null
|
||||
): PackUpdatedEventFilter;
|
||||
PackUpdated(
|
||||
packId?: BigNumberish | null,
|
||||
recipient?: null,
|
||||
totalPacksCreated?: null
|
||||
): PackUpdatedEventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
|
||||
@@ -142,7 +142,6 @@ export interface MarketplaceInterface extends utils.Interface {
|
||||
"setContractURI(string)": FunctionFragment;
|
||||
"setPlatformFeeInfo(address,uint256)": FunctionFragment;
|
||||
"supportsInterface(bytes4)": FunctionFragment;
|
||||
"thirdwebFee()": FunctionFragment;
|
||||
"timeBuffer()": FunctionFragment;
|
||||
"totalListings()": FunctionFragment;
|
||||
"updateListing(uint256,uint256,uint256,uint256,address,uint256,uint256)": FunctionFragment;
|
||||
@@ -183,7 +182,6 @@ export interface MarketplaceInterface extends utils.Interface {
|
||||
| "setContractURI"
|
||||
| "setPlatformFeeInfo"
|
||||
| "supportsInterface"
|
||||
| "thirdwebFee"
|
||||
| "timeBuffer"
|
||||
| "totalListings"
|
||||
| "updateListing"
|
||||
@@ -315,10 +313,6 @@ export interface MarketplaceInterface extends utils.Interface {
|
||||
functionFragment: "supportsInterface",
|
||||
values: [BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "thirdwebFee",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "timeBuffer",
|
||||
values?: undefined
|
||||
@@ -442,10 +436,6 @@ export interface MarketplaceInterface extends utils.Interface {
|
||||
functionFragment: "supportsInterface",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "thirdwebFee",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "timeBuffer", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "totalListings",
|
||||
@@ -859,8 +849,6 @@ export interface Marketplace extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean]>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
timeBuffer(overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
totalListings(overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
@@ -1099,8 +1087,6 @@ export interface Marketplace extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
timeBuffer(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalListings(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
@@ -1333,8 +1319,6 @@ export interface Marketplace extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
timeBuffer(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalListings(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
@@ -1670,8 +1654,6 @@ export interface Marketplace extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
timeBuffer(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalListings(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
@@ -1872,8 +1854,6 @@ export interface Marketplace extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
timeBuffer(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
totalListings(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
@@ -0,0 +1,190 @@
|
||||
/* Autogenerated file. Do not edit manually. */
|
||||
|
||||
/* tslint:disable */
|
||||
|
||||
/* eslint-disable */
|
||||
import type {
|
||||
TypedEventFilter,
|
||||
TypedEvent,
|
||||
TypedListener,
|
||||
OnEvent,
|
||||
} from "./common";
|
||||
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
||||
import type { Listener, Provider } from "@ethersproject/providers";
|
||||
import type {
|
||||
BaseContract,
|
||||
BigNumber,
|
||||
BigNumberish,
|
||||
BytesLike,
|
||||
CallOverrides,
|
||||
ContractTransaction,
|
||||
PayableOverrides,
|
||||
PopulatedTransaction,
|
||||
Signer,
|
||||
utils,
|
||||
} from "ethers";
|
||||
|
||||
export declare namespace MinimalForwarderEOAOnly {
|
||||
export type ForwardRequestStruct = {
|
||||
from: string;
|
||||
to: string;
|
||||
value: BigNumberish;
|
||||
gas: BigNumberish;
|
||||
nonce: BigNumberish;
|
||||
data: BytesLike;
|
||||
};
|
||||
|
||||
export type ForwardRequestStructOutput = [
|
||||
string,
|
||||
string,
|
||||
BigNumber,
|
||||
BigNumber,
|
||||
BigNumber,
|
||||
string
|
||||
] & {
|
||||
from: string;
|
||||
to: string;
|
||||
value: BigNumber;
|
||||
gas: BigNumber;
|
||||
nonce: BigNumber;
|
||||
data: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface MinimalForwarderEOAOnlyInterface extends utils.Interface {
|
||||
functions: {
|
||||
"execute((address,address,uint256,uint256,uint256,bytes),bytes)": FunctionFragment;
|
||||
"getNonce(address)": FunctionFragment;
|
||||
"verify((address,address,uint256,uint256,uint256,bytes),bytes)": FunctionFragment;
|
||||
};
|
||||
|
||||
getFunction(
|
||||
nameOrSignatureOrTopic: "execute" | "getNonce" | "verify"
|
||||
): FunctionFragment;
|
||||
|
||||
encodeFunctionData(
|
||||
functionFragment: "execute",
|
||||
values: [MinimalForwarderEOAOnly.ForwardRequestStruct, BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "getNonce", values: [string]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "verify",
|
||||
values: [MinimalForwarderEOAOnly.ForwardRequestStruct, BytesLike]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: "execute", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "getNonce", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "verify", data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export interface MinimalForwarderEOAOnly extends BaseContract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
interface: MinimalForwarderEOAOnlyInterface;
|
||||
|
||||
queryFilter<TEvent extends TypedEvent>(
|
||||
event: TypedEventFilter<TEvent>,
|
||||
fromBlockOrBlockhash?: string | number | undefined,
|
||||
toBlock?: string | number | undefined
|
||||
): Promise<Array<TEvent>>;
|
||||
|
||||
listeners<TEvent extends TypedEvent>(
|
||||
eventFilter?: TypedEventFilter<TEvent>
|
||||
): Array<TypedListener<TEvent>>;
|
||||
listeners(eventName?: string): Array<Listener>;
|
||||
removeAllListeners<TEvent extends TypedEvent>(
|
||||
eventFilter: TypedEventFilter<TEvent>
|
||||
): this;
|
||||
removeAllListeners(eventName?: string): this;
|
||||
off: OnEvent<this>;
|
||||
on: OnEvent<this>;
|
||||
once: OnEvent<this>;
|
||||
removeListener: OnEvent<this>;
|
||||
|
||||
functions: {
|
||||
execute(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
getNonce(from: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
||||
|
||||
verify(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean]>;
|
||||
};
|
||||
|
||||
execute(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
getNonce(from: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
verify(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
callStatic: {
|
||||
execute(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean, string]>;
|
||||
|
||||
getNonce(from: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
verify(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
execute(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getNonce(from: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
verify(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
execute(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getNonce(
|
||||
from: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
verify(
|
||||
req: MinimalForwarderEOAOnly.ForwardRequestStruct,
|
||||
signature: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
||||
@@ -48,7 +48,6 @@ export declare namespace ITokenBundle {
|
||||
export interface MultiwrapInterface extends utils.Interface {
|
||||
functions: {
|
||||
"DEFAULT_ADMIN_ROLE()": FunctionFragment;
|
||||
"NATIVE_TOKEN()": FunctionFragment;
|
||||
"approve(address,uint256)": FunctionFragment;
|
||||
"balanceOf(address)": FunctionFragment;
|
||||
"contractType()": FunctionFragment;
|
||||
@@ -99,7 +98,6 @@ export interface MultiwrapInterface extends utils.Interface {
|
||||
getFunction(
|
||||
nameOrSignatureOrTopic:
|
||||
| "DEFAULT_ADMIN_ROLE"
|
||||
| "NATIVE_TOKEN"
|
||||
| "approve"
|
||||
| "balanceOf"
|
||||
| "contractType"
|
||||
@@ -151,10 +149,6 @@ export interface MultiwrapInterface extends utils.Interface {
|
||||
functionFragment: "DEFAULT_ADMIN_ROLE",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "NATIVE_TOKEN",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "approve",
|
||||
values: [string, BigNumberish]
|
||||
@@ -325,10 +319,6 @@ export interface MultiwrapInterface extends utils.Interface {
|
||||
functionFragment: "DEFAULT_ADMIN_ROLE",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "NATIVE_TOKEN",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
@@ -667,8 +657,6 @@ export interface Multiwrap extends BaseContract {
|
||||
functions: {
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
approve(
|
||||
to: string,
|
||||
tokenId: BigNumberish,
|
||||
@@ -914,8 +902,6 @@ export interface Multiwrap extends BaseContract {
|
||||
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
approve(
|
||||
to: string,
|
||||
tokenId: BigNumberish,
|
||||
@@ -1151,8 +1137,6 @@ export interface Multiwrap extends BaseContract {
|
||||
callStatic: {
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
approve(
|
||||
to: string,
|
||||
tokenId: BigNumberish,
|
||||
@@ -1513,8 +1497,6 @@ export interface Multiwrap extends BaseContract {
|
||||
estimateGas: {
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
approve(
|
||||
to: string,
|
||||
tokenId: BigNumberish,
|
||||
@@ -1760,8 +1742,6 @@ export interface Multiwrap extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
approve(
|
||||
to: string,
|
||||
tokenId: BigNumberish,
|
||||
|
||||
@@ -48,9 +48,10 @@ export declare namespace ITokenBundle {
|
||||
export interface PackInterface extends utils.Interface {
|
||||
functions: {
|
||||
"DEFAULT_ADMIN_ROLE()": FunctionFragment;
|
||||
"NATIVE_TOKEN()": FunctionFragment;
|
||||
"addPackContents(uint256,(address,uint8,uint256,uint256)[],uint256[],address)": FunctionFragment;
|
||||
"balanceOf(address,uint256)": FunctionFragment;
|
||||
"balanceOfBatch(address[],uint256[])": FunctionFragment;
|
||||
"canUpdatePack(uint256)": FunctionFragment;
|
||||
"contractType()": FunctionFragment;
|
||||
"contractURI()": FunctionFragment;
|
||||
"contractVersion()": FunctionFragment;
|
||||
@@ -67,7 +68,7 @@ export interface PackInterface extends utils.Interface {
|
||||
"grantRole(bytes32,address)": FunctionFragment;
|
||||
"hasRole(bytes32,address)": FunctionFragment;
|
||||
"hasRoleWithSwitch(bytes32,address)": FunctionFragment;
|
||||
"initialize(address,string,string,string,address[],address,uint256)": FunctionFragment;
|
||||
"initialize(address,string,string,string,address,uint256)": FunctionFragment;
|
||||
"isApprovedForAll(address,address)": FunctionFragment;
|
||||
"isTrustedForwarder(address)": FunctionFragment;
|
||||
"multicall(bytes[])": FunctionFragment;
|
||||
@@ -78,7 +79,6 @@ export interface PackInterface extends utils.Interface {
|
||||
"onERC721Received(address,address,uint256,bytes)": FunctionFragment;
|
||||
"openPack(uint256,uint256)": FunctionFragment;
|
||||
"owner()": FunctionFragment;
|
||||
"paused()": FunctionFragment;
|
||||
"renounceRole(bytes32,address)": FunctionFragment;
|
||||
"revokeRole(bytes32,address)": FunctionFragment;
|
||||
"royaltyInfo(uint256,uint256)": FunctionFragment;
|
||||
@@ -98,9 +98,10 @@ export interface PackInterface extends utils.Interface {
|
||||
getFunction(
|
||||
nameOrSignatureOrTopic:
|
||||
| "DEFAULT_ADMIN_ROLE"
|
||||
| "NATIVE_TOKEN"
|
||||
| "addPackContents"
|
||||
| "balanceOf"
|
||||
| "balanceOfBatch"
|
||||
| "canUpdatePack"
|
||||
| "contractType"
|
||||
| "contractURI"
|
||||
| "contractVersion"
|
||||
@@ -128,7 +129,6 @@ export interface PackInterface extends utils.Interface {
|
||||
| "onERC721Received"
|
||||
| "openPack"
|
||||
| "owner"
|
||||
| "paused"
|
||||
| "renounceRole"
|
||||
| "revokeRole"
|
||||
| "royaltyInfo"
|
||||
@@ -150,8 +150,8 @@ export interface PackInterface extends utils.Interface {
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "NATIVE_TOKEN",
|
||||
values?: undefined
|
||||
functionFragment: "addPackContents",
|
||||
values: [BigNumberish, ITokenBundle.TokenStruct[], BigNumberish[], string]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "balanceOf",
|
||||
@@ -161,6 +161,10 @@ export interface PackInterface extends utils.Interface {
|
||||
functionFragment: "balanceOfBatch",
|
||||
values: [string[], BigNumberish[]]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "canUpdatePack",
|
||||
values: [BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "contractType",
|
||||
values?: undefined
|
||||
@@ -234,7 +238,7 @@ export interface PackInterface extends utils.Interface {
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "initialize",
|
||||
values: [string, string, string, string, string[], string, BigNumberish]
|
||||
values: [string, string, string, string, string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "isApprovedForAll",
|
||||
@@ -270,7 +274,6 @@ export interface PackInterface extends utils.Interface {
|
||||
values: [BigNumberish, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "renounceRole",
|
||||
values: [BytesLike, string]
|
||||
@@ -324,7 +327,7 @@ export interface PackInterface extends utils.Interface {
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "NATIVE_TOKEN",
|
||||
functionFragment: "addPackContents",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
||||
@@ -332,6 +335,10 @@ export interface PackInterface extends utils.Interface {
|
||||
functionFragment: "balanceOfBatch",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "canUpdatePack",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "contractType",
|
||||
data: BytesLike
|
||||
@@ -416,7 +423,6 @@ export interface PackInterface extends utils.Interface {
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "openPack", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "renounceRole",
|
||||
data: BytesLike
|
||||
@@ -467,9 +473,9 @@ export interface PackInterface extends utils.Interface {
|
||||
"ContractURIUpdated(string,string)": EventFragment;
|
||||
"DefaultRoyalty(address,uint256)": EventFragment;
|
||||
"OwnerUpdated(address,address)": EventFragment;
|
||||
"PackCreated(uint256,address,address,uint256)": EventFragment;
|
||||
"PackCreated(uint256,address,uint256)": EventFragment;
|
||||
"PackOpened(uint256,address,uint256,tuple[])": EventFragment;
|
||||
"Paused(address)": EventFragment;
|
||||
"PackUpdated(uint256,address,uint256)": EventFragment;
|
||||
"RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment;
|
||||
"RoleGranted(bytes32,address,address)": EventFragment;
|
||||
"RoleRevoked(bytes32,address,address)": EventFragment;
|
||||
@@ -477,7 +483,6 @@ export interface PackInterface extends utils.Interface {
|
||||
"TransferBatch(address,address,address,uint256[],uint256[])": EventFragment;
|
||||
"TransferSingle(address,address,address,uint256,uint256)": EventFragment;
|
||||
"URI(string,uint256)": EventFragment;
|
||||
"Unpaused(address)": EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: "ApprovalForAll"): EventFragment;
|
||||
@@ -486,7 +491,7 @@ export interface PackInterface extends utils.Interface {
|
||||
getEvent(nameOrSignatureOrTopic: "OwnerUpdated"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "PackCreated"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "PackOpened"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "PackUpdated"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment;
|
||||
@@ -494,7 +499,6 @@ export interface PackInterface extends utils.Interface {
|
||||
getEvent(nameOrSignatureOrTopic: "TransferBatch"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "TransferSingle"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "URI"): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment;
|
||||
}
|
||||
|
||||
export interface ApprovalForAllEventObject {
|
||||
@@ -545,12 +549,11 @@ export type OwnerUpdatedEventFilter = TypedEventFilter<OwnerUpdatedEvent>;
|
||||
|
||||
export interface PackCreatedEventObject {
|
||||
packId: BigNumber;
|
||||
packCreator: string;
|
||||
recipient: string;
|
||||
totalPacksCreated: BigNumber;
|
||||
}
|
||||
export type PackCreatedEvent = TypedEvent<
|
||||
[BigNumber, string, string, BigNumber],
|
||||
[BigNumber, string, BigNumber],
|
||||
PackCreatedEventObject
|
||||
>;
|
||||
|
||||
@@ -569,12 +572,17 @@ export type PackOpenedEvent = TypedEvent<
|
||||
|
||||
export type PackOpenedEventFilter = TypedEventFilter<PackOpenedEvent>;
|
||||
|
||||
export interface PausedEventObject {
|
||||
account: string;
|
||||
export interface PackUpdatedEventObject {
|
||||
packId: BigNumber;
|
||||
recipient: string;
|
||||
totalPacksCreated: BigNumber;
|
||||
}
|
||||
export type PausedEvent = TypedEvent<[string], PausedEventObject>;
|
||||
export type PackUpdatedEvent = TypedEvent<
|
||||
[BigNumber, string, BigNumber],
|
||||
PackUpdatedEventObject
|
||||
>;
|
||||
|
||||
export type PausedEventFilter = TypedEventFilter<PausedEvent>;
|
||||
export type PackUpdatedEventFilter = TypedEventFilter<PackUpdatedEvent>;
|
||||
|
||||
export interface RoleAdminChangedEventObject {
|
||||
role: string;
|
||||
@@ -661,13 +669,6 @@ export type URIEvent = TypedEvent<[string, BigNumber], URIEventObject>;
|
||||
|
||||
export type URIEventFilter = TypedEventFilter<URIEvent>;
|
||||
|
||||
export interface UnpausedEventObject {
|
||||
account: string;
|
||||
}
|
||||
export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>;
|
||||
|
||||
export type UnpausedEventFilter = TypedEventFilter<UnpausedEvent>;
|
||||
|
||||
export interface Pack extends BaseContract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
@@ -697,7 +698,13 @@ export interface Pack extends BaseContract {
|
||||
functions: {
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<[string]>;
|
||||
addPackContents(
|
||||
_packId: BigNumberish,
|
||||
_contents: ITokenBundle.TokenStruct[],
|
||||
_numOfRewardUnits: BigNumberish[],
|
||||
_recipient: string,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(
|
||||
account: string,
|
||||
@@ -711,6 +718,11 @@ export interface Pack extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<[BigNumber[]]>;
|
||||
|
||||
canUpdatePack(
|
||||
arg0: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean]>;
|
||||
|
||||
contractType(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<[string]>;
|
||||
@@ -796,7 +808,6 @@ export interface Pack extends BaseContract {
|
||||
_name: string,
|
||||
_symbol: string,
|
||||
_contractURI: string,
|
||||
_trustedForwarders: string[],
|
||||
_royaltyRecipient: string,
|
||||
_royaltyBps: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -856,8 +867,6 @@ export interface Pack extends BaseContract {
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
paused(overrides?: CallOverrides): Promise<[boolean]>;
|
||||
|
||||
renounceRole(
|
||||
role: BytesLike,
|
||||
account: string,
|
||||
@@ -942,7 +951,13 @@ export interface Pack extends BaseContract {
|
||||
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<string>;
|
||||
addPackContents(
|
||||
_packId: BigNumberish,
|
||||
_contents: ITokenBundle.TokenStruct[],
|
||||
_numOfRewardUnits: BigNumberish[],
|
||||
_recipient: string,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(
|
||||
account: string,
|
||||
@@ -956,6 +971,11 @@ export interface Pack extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber[]>;
|
||||
|
||||
canUpdatePack(
|
||||
arg0: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
contractType(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<string>;
|
||||
@@ -1041,7 +1061,6 @@ export interface Pack extends BaseContract {
|
||||
_name: string,
|
||||
_symbol: string,
|
||||
_contractURI: string,
|
||||
_trustedForwarders: string[],
|
||||
_royaltyRecipient: string,
|
||||
_royaltyBps: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1101,8 +1120,6 @@ export interface Pack extends BaseContract {
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
paused(overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
renounceRole(
|
||||
role: BytesLike,
|
||||
account: string,
|
||||
@@ -1187,7 +1204,18 @@ export interface Pack extends BaseContract {
|
||||
callStatic: {
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<string>;
|
||||
addPackContents(
|
||||
_packId: BigNumberish,
|
||||
_contents: ITokenBundle.TokenStruct[],
|
||||
_numOfRewardUnits: BigNumberish[],
|
||||
_recipient: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<
|
||||
[BigNumber, BigNumber] & {
|
||||
packTotalSupply: BigNumber;
|
||||
newSupplyAdded: BigNumber;
|
||||
}
|
||||
>;
|
||||
|
||||
balanceOf(
|
||||
account: string,
|
||||
@@ -1201,6 +1229,11 @@ export interface Pack extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber[]>;
|
||||
|
||||
canUpdatePack(
|
||||
arg0: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
contractType(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<string>;
|
||||
@@ -1288,7 +1321,6 @@ export interface Pack extends BaseContract {
|
||||
_name: string,
|
||||
_symbol: string,
|
||||
_contractURI: string,
|
||||
_trustedForwarders: string[],
|
||||
_royaltyRecipient: string,
|
||||
_royaltyBps: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -1345,8 +1377,6 @@ export interface Pack extends BaseContract {
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
paused(overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
renounceRole(
|
||||
role: BytesLike,
|
||||
account: string,
|
||||
@@ -1462,15 +1492,13 @@ export interface Pack extends BaseContract {
|
||||
newOwner?: string | null
|
||||
): OwnerUpdatedEventFilter;
|
||||
|
||||
"PackCreated(uint256,address,address,uint256)"(
|
||||
"PackCreated(uint256,address,uint256)"(
|
||||
packId?: BigNumberish | null,
|
||||
packCreator?: string | null,
|
||||
recipient?: null,
|
||||
totalPacksCreated?: null
|
||||
): PackCreatedEventFilter;
|
||||
PackCreated(
|
||||
packId?: BigNumberish | null,
|
||||
packCreator?: string | null,
|
||||
recipient?: null,
|
||||
totalPacksCreated?: null
|
||||
): PackCreatedEventFilter;
|
||||
@@ -1488,8 +1516,16 @@ export interface Pack extends BaseContract {
|
||||
rewardUnitsDistributed?: null
|
||||
): PackOpenedEventFilter;
|
||||
|
||||
"Paused(address)"(account?: null): PausedEventFilter;
|
||||
Paused(account?: null): PausedEventFilter;
|
||||
"PackUpdated(uint256,address,uint256)"(
|
||||
packId?: BigNumberish | null,
|
||||
recipient?: null,
|
||||
totalPacksCreated?: null
|
||||
): PackUpdatedEventFilter;
|
||||
PackUpdated(
|
||||
packId?: BigNumberish | null,
|
||||
recipient?: null,
|
||||
totalPacksCreated?: null
|
||||
): PackUpdatedEventFilter;
|
||||
|
||||
"RoleAdminChanged(bytes32,bytes32,bytes32)"(
|
||||
role?: BytesLike | null,
|
||||
@@ -1570,15 +1606,18 @@ export interface Pack extends BaseContract {
|
||||
id?: BigNumberish | null
|
||||
): URIEventFilter;
|
||||
URI(value?: null, id?: BigNumberish | null): URIEventFilter;
|
||||
|
||||
"Unpaused(address)"(account?: null): UnpausedEventFilter;
|
||||
Unpaused(account?: null): UnpausedEventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
addPackContents(
|
||||
_packId: BigNumberish,
|
||||
_contents: ITokenBundle.TokenStruct[],
|
||||
_numOfRewardUnits: BigNumberish[],
|
||||
_recipient: string,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<BigNumber>;
|
||||
|
||||
balanceOf(
|
||||
account: string,
|
||||
@@ -1592,6 +1631,11 @@ export interface Pack extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
canUpdatePack(
|
||||
arg0: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
contractType(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
@@ -1675,7 +1719,6 @@ export interface Pack extends BaseContract {
|
||||
_name: string,
|
||||
_symbol: string,
|
||||
_contractURI: string,
|
||||
_trustedForwarders: string[],
|
||||
_royaltyRecipient: string,
|
||||
_royaltyBps: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1735,8 +1778,6 @@ export interface Pack extends BaseContract {
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
paused(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
renounceRole(
|
||||
role: BytesLike,
|
||||
account: string,
|
||||
@@ -1822,7 +1863,13 @@ export interface Pack extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
addPackContents(
|
||||
_packId: BigNumberish,
|
||||
_contents: ITokenBundle.TokenStruct[],
|
||||
_numOfRewardUnits: BigNumberish[],
|
||||
_recipient: string,
|
||||
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
balanceOf(
|
||||
account: string,
|
||||
@@ -1836,6 +1883,11 @@ export interface Pack extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
canUpdatePack(
|
||||
arg0: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
contractType(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
contractURI(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
@@ -1921,7 +1973,6 @@ export interface Pack extends BaseContract {
|
||||
_name: string,
|
||||
_symbol: string,
|
||||
_contractURI: string,
|
||||
_trustedForwarders: string[],
|
||||
_royaltyRecipient: string,
|
||||
_royaltyBps: BigNumberish,
|
||||
overrides?: Overrides & { from?: string | Promise<string> }
|
||||
@@ -1981,8 +2032,6 @@ export interface Pack extends BaseContract {
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
paused(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
renounceRole(
|
||||
role: BytesLike,
|
||||
account: string,
|
||||
|
||||
@@ -55,7 +55,6 @@ export interface SplitInterface extends utils.Interface {
|
||||
"setContractURI(string)": FunctionFragment;
|
||||
"shares(address)": FunctionFragment;
|
||||
"supportsInterface(bytes4)": FunctionFragment;
|
||||
"thirdwebFee()": FunctionFragment;
|
||||
"totalReleased(address)": FunctionFragment;
|
||||
"totalReleased()": FunctionFragment;
|
||||
"totalShares()": FunctionFragment;
|
||||
@@ -88,7 +87,6 @@ export interface SplitInterface extends utils.Interface {
|
||||
| "setContractURI"
|
||||
| "shares"
|
||||
| "supportsInterface"
|
||||
| "thirdwebFee"
|
||||
| "totalReleased(address)"
|
||||
| "totalReleased()"
|
||||
| "totalShares"
|
||||
@@ -188,10 +186,6 @@ export interface SplitInterface extends utils.Interface {
|
||||
functionFragment: "supportsInterface",
|
||||
values: [BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "thirdwebFee",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "totalReleased(address)",
|
||||
values: [string]
|
||||
@@ -281,10 +275,6 @@ export interface SplitInterface extends utils.Interface {
|
||||
functionFragment: "supportsInterface",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "thirdwebFee",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "totalReleased(address)",
|
||||
data: BytesLike
|
||||
@@ -538,8 +528,6 @@ export interface Split extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<[boolean]>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
"totalReleased(address)"(
|
||||
token: string,
|
||||
overrides?: CallOverrides
|
||||
@@ -661,8 +649,6 @@ export interface Split extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
"totalReleased(address)"(
|
||||
token: string,
|
||||
overrides?: CallOverrides
|
||||
@@ -776,8 +762,6 @@ export interface Split extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
"totalReleased(address)"(
|
||||
token: string,
|
||||
overrides?: CallOverrides
|
||||
@@ -967,8 +951,6 @@ export interface Split extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
"totalReleased(address)"(
|
||||
token: string,
|
||||
overrides?: CallOverrides
|
||||
@@ -1102,8 +1084,6 @@ export interface Split extends BaseContract {
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
"totalReleased(address)"(
|
||||
token: string,
|
||||
overrides?: CallOverrides
|
||||
|
||||
@@ -119,7 +119,6 @@ export interface TokenERC1155Interface extends utils.Interface {
|
||||
"setRoyaltyInfoForToken(uint256,address,uint256)": FunctionFragment;
|
||||
"supportsInterface(bytes4)": FunctionFragment;
|
||||
"symbol()": FunctionFragment;
|
||||
"thirdwebFee()": FunctionFragment;
|
||||
"totalSupply(uint256)": FunctionFragment;
|
||||
"uri(uint256)": FunctionFragment;
|
||||
"verify((address,address,uint256,address,uint256,string,uint256,uint256,address,uint128,uint128,bytes32),bytes)": FunctionFragment;
|
||||
@@ -170,7 +169,6 @@ export interface TokenERC1155Interface extends utils.Interface {
|
||||
| "setRoyaltyInfoForToken"
|
||||
| "supportsInterface"
|
||||
| "symbol"
|
||||
| "thirdwebFee"
|
||||
| "totalSupply"
|
||||
| "uri"
|
||||
| "verify"
|
||||
@@ -347,10 +345,6 @@ export interface TokenERC1155Interface extends utils.Interface {
|
||||
values: [BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "thirdwebFee",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "totalSupply",
|
||||
values: [BigNumberish]
|
||||
@@ -494,10 +488,6 @@ export interface TokenERC1155Interface extends utils.Interface {
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "thirdwebFee",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "totalSupply",
|
||||
data: BytesLike
|
||||
@@ -950,8 +940,6 @@ export interface TokenERC1155 extends BaseContract {
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
totalSupply(
|
||||
arg0: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -1180,8 +1168,6 @@ export interface TokenERC1155 extends BaseContract {
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
totalSupply(
|
||||
arg0: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -1401,8 +1387,6 @@ export interface TokenERC1155 extends BaseContract {
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
totalSupply(
|
||||
arg0: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -1786,8 +1770,6 @@ export interface TokenERC1155 extends BaseContract {
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalSupply(
|
||||
arg0: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -2028,8 +2010,6 @@ export interface TokenERC1155 extends BaseContract {
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
totalSupply(
|
||||
arg0: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
|
||||
@@ -113,7 +113,6 @@ export interface TokenERC721Interface extends utils.Interface {
|
||||
"setRoyaltyInfoForToken(uint256,address,uint256)": FunctionFragment;
|
||||
"supportsInterface(bytes4)": FunctionFragment;
|
||||
"symbol()": FunctionFragment;
|
||||
"thirdwebFee()": FunctionFragment;
|
||||
"tokenByIndex(uint256)": FunctionFragment;
|
||||
"tokenOfOwnerByIndex(address,uint256)": FunctionFragment;
|
||||
"tokenURI(uint256)": FunctionFragment;
|
||||
@@ -167,7 +166,6 @@ export interface TokenERC721Interface extends utils.Interface {
|
||||
| "setRoyaltyInfoForToken"
|
||||
| "supportsInterface"
|
||||
| "symbol"
|
||||
| "thirdwebFee"
|
||||
| "tokenByIndex"
|
||||
| "tokenOfOwnerByIndex"
|
||||
| "tokenURI"
|
||||
@@ -341,10 +339,6 @@ export interface TokenERC721Interface extends utils.Interface {
|
||||
values: [BytesLike]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "thirdwebFee",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "tokenByIndex",
|
||||
values: [BigNumberish]
|
||||
@@ -500,10 +494,6 @@ export interface TokenERC721Interface extends utils.Interface {
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "thirdwebFee",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "tokenByIndex",
|
||||
data: BytesLike
|
||||
@@ -940,8 +930,6 @@ export interface TokenERC721 extends BaseContract {
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
tokenByIndex(
|
||||
index: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -1172,8 +1160,6 @@ export interface TokenERC721 extends BaseContract {
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
tokenByIndex(
|
||||
index: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -1389,8 +1375,6 @@ export interface TokenERC721 extends BaseContract {
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
tokenByIndex(
|
||||
index: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -1763,8 +1747,6 @@ export interface TokenERC721 extends BaseContract {
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
tokenByIndex(
|
||||
index: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -2013,8 +1995,6 @@ export interface TokenERC721 extends BaseContract {
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
thirdwebFee(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
tokenByIndex(
|
||||
index: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
|
||||
@@ -42,7 +42,6 @@ export declare namespace ITokenBundle {
|
||||
|
||||
export interface TokenStoreInterface extends utils.Interface {
|
||||
functions: {
|
||||
"NATIVE_TOKEN()": FunctionFragment;
|
||||
"getTokenCountOfBundle(uint256)": FunctionFragment;
|
||||
"getTokenOfBundle(uint256,uint256)": FunctionFragment;
|
||||
"getUriOfBundle(uint256)": FunctionFragment;
|
||||
@@ -54,7 +53,6 @@ export interface TokenStoreInterface extends utils.Interface {
|
||||
|
||||
getFunction(
|
||||
nameOrSignatureOrTopic:
|
||||
| "NATIVE_TOKEN"
|
||||
| "getTokenCountOfBundle"
|
||||
| "getTokenOfBundle"
|
||||
| "getUriOfBundle"
|
||||
@@ -64,10 +62,6 @@ export interface TokenStoreInterface extends utils.Interface {
|
||||
| "supportsInterface"
|
||||
): FunctionFragment;
|
||||
|
||||
encodeFunctionData(
|
||||
functionFragment: "NATIVE_TOKEN",
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: "getTokenCountOfBundle",
|
||||
values: [BigNumberish]
|
||||
@@ -97,10 +91,6 @@ export interface TokenStoreInterface extends utils.Interface {
|
||||
values: [BytesLike]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(
|
||||
functionFragment: "NATIVE_TOKEN",
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: "getTokenCountOfBundle",
|
||||
data: BytesLike
|
||||
@@ -160,8 +150,6 @@ export interface TokenStore extends BaseContract {
|
||||
removeListener: OnEvent<this>;
|
||||
|
||||
functions: {
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<[string]>;
|
||||
|
||||
getTokenCountOfBundle(
|
||||
_bundleId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -210,8 +198,6 @@ export interface TokenStore extends BaseContract {
|
||||
): Promise<[boolean]>;
|
||||
};
|
||||
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getTokenCountOfBundle(
|
||||
_bundleId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -260,8 +246,6 @@ export interface TokenStore extends BaseContract {
|
||||
): Promise<boolean>;
|
||||
|
||||
callStatic: {
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getTokenCountOfBundle(
|
||||
_bundleId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -313,8 +297,6 @@ export interface TokenStore extends BaseContract {
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getTokenCountOfBundle(
|
||||
_bundleId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
@@ -364,8 +346,6 @@ export interface TokenStore extends BaseContract {
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
NATIVE_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getTokenCountOfBundle(
|
||||
_bundleId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -17,12 +17,6 @@ const _abi = [
|
||||
name: "packId",
|
||||
type: "uint256",
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: "address",
|
||||
name: "packCreator",
|
||||
type: "address",
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: "address",
|
||||
@@ -92,6 +86,31 @@ const _abi = [
|
||||
name: "PackOpened",
|
||||
type: "event",
|
||||
},
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: "uint256",
|
||||
name: "packId",
|
||||
type: "uint256",
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: "address",
|
||||
name: "recipient",
|
||||
type: "address",
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: "uint256",
|
||||
name: "totalPacksCreated",
|
||||
type: "uint256",
|
||||
},
|
||||
],
|
||||
name: "PackUpdated",
|
||||
type: "event",
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -19,19 +19,6 @@ const _abi = [
|
||||
stateMutability: "nonpayable",
|
||||
type: "constructor",
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: "NATIVE_TOKEN",
|
||||
outputs: [
|
||||
{
|
||||
internalType: "address",
|
||||
name: "",
|
||||
type: "address",
|
||||
},
|
||||
],
|
||||
stateMutability: "view",
|
||||
type: "function",
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
@@ -250,7 +237,7 @@ const _abi = [
|
||||
];
|
||||
|
||||
const _bytecode =
|
||||
"0x60a060405234801561001057600080fd5b5060405161084838038061084883398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516107c0610088600039600050506107c06000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806361195e941161005b57806361195e941461013f578063bc197c811461015f578063d0d2fe251461017e578063f23a6e61146101ac57600080fd5b806301ffc9a71461008d578063150b7a02146100b55780631da799c9146100ec57806331f7d9641461010c575b600080fd5b6100a061009b366004610358565b6101cb565b60405190151581526020015b60405180910390f35b6100d36100c336600461045c565b630a85bd0160e11b949350505050565b6040516001600160e01b031990911681526020016100ac565b6100ff6100fa3660046104c4565b610202565b6040516100ac91906104fc565b61012773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b6040516001600160a01b0390911681526020016100ac565b61015261014d366004610552565b6102b3565b6040516100ac919061056b565b6100d361016d366004610640565b63bc197c8160e01b95945050505050565b61019e61018c366004610552565b60009081526020819052604090205490565b6040519081526020016100ac565b6100d36101ba3660046106ea565b63f23a6e6160e01b95945050505050565b60006001600160e01b03198216630271189760e51b14806101fc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b61022e604080516080810190915260008082526020820190815260200160008152602001600081525090565b600083815260208181526040808320858452600290810183529281902081516080810190925280546001600160a01b038116835291939092840191600160a01b900460ff1690811115610283576102836104e6565b6002811115610294576102946104e6565b8152600182015460208201526002909101546040909101529392505050565b60008181526020819052604090206001018054606091906102d39061074f565b80601f01602080910402602001604051908101604052809291908181526020018280546102ff9061074f565b801561034c5780601f106103215761010080835404028352916020019161034c565b820191906000526020600020905b81548152906001019060200180831161032f57829003601f168201915b50505050509050919050565b60006020828403121561036a57600080fd5b81356001600160e01b03198116811461038257600080fd5b9392505050565b80356001600160a01b03811681146103a057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156103e4576103e46103a5565b604052919050565b600082601f8301126103fd57600080fd5b813567ffffffffffffffff811115610417576104176103a5565b61042a601f8201601f19166020016103bb565b81815284602083860101111561043f57600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561047257600080fd5b61047b85610389565b935061048960208601610389565b925060408501359150606085013567ffffffffffffffff8111156104ac57600080fd5b6104b8878288016103ec565b91505092959194509250565b600080604083850312156104d757600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b81516001600160a01b03168152602082015160808201906003811061053157634e487b7160e01b600052602160045260246000fd5b80602084015250604083015160408301526060830151606083015292915050565b60006020828403121561056457600080fd5b5035919050565b600060208083528351808285015260005b818110156105985785810183015185820160400152820161057c565b818111156105aa576000604083870101525b50601f01601f1916929092016040019392505050565b600082601f8301126105d157600080fd5b8135602067ffffffffffffffff8211156105ed576105ed6103a5565b8160051b6105fc8282016103bb565b928352848101820192828101908785111561061657600080fd5b83870192505b848310156106355782358252918301919083019061061c565b979650505050505050565b600080600080600060a0868803121561065857600080fd5b61066186610389565b945061066f60208701610389565b9350604086013567ffffffffffffffff8082111561068c57600080fd5b61069889838a016105c0565b945060608801359150808211156106ae57600080fd5b6106ba89838a016105c0565b935060808801359150808211156106d057600080fd5b506106dd888289016103ec565b9150509295509295909350565b600080600080600060a0868803121561070257600080fd5b61070b86610389565b945061071960208701610389565b93506040860135925060608601359150608086013567ffffffffffffffff81111561074357600080fd5b6106dd888289016103ec565b600181811c9082168061076357607f821691505b6020821081141561078457634e487b7160e01b600052602260045260246000fd5b5091905056fea264697066735822122025bb9f1485b0667156bd6d47e48c386060025d409bc7d5dfea042a9c1f329a2564736f6c634300080c0033";
|
||||
"0x60a060405234801561001057600080fd5b5060405161080a38038061080a83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b608051610782610088600039600050506107826000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806361195e941161005b57806361195e9414610101578063bc197c8114610121578063d0d2fe2514610140578063f23a6e611461016e57600080fd5b806301ffc9a714610082578063150b7a02146100aa5780631da799c9146100e1575b600080fd5b61009561009036600461031a565b61018d565b60405190151581526020015b60405180910390f35b6100c86100b836600461041e565b630a85bd0160e11b949350505050565b6040516001600160e01b031990911681526020016100a1565b6100f46100ef366004610486565b6101c4565b6040516100a191906104be565b61011461010f366004610514565b610275565b6040516100a1919061052d565b6100c861012f366004610602565b63bc197c8160e01b95945050505050565b61016061014e366004610514565b60009081526020819052604090205490565b6040519081526020016100a1565b6100c861017c3660046106ac565b63f23a6e6160e01b95945050505050565b60006001600160e01b03198216630271189760e51b14806101be57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6101f0604080516080810190915260008082526020820190815260200160008152602001600081525090565b600083815260208181526040808320858452600290810183529281902081516080810190925280546001600160a01b038116835291939092840191600160a01b900460ff1690811115610245576102456104a8565b6002811115610256576102566104a8565b8152600182015460208201526002909101546040909101529392505050565b600081815260208190526040902060010180546060919061029590610711565b80601f01602080910402602001604051908101604052809291908181526020018280546102c190610711565b801561030e5780601f106102e35761010080835404028352916020019161030e565b820191906000526020600020905b8154815290600101906020018083116102f157829003601f168201915b50505050509050919050565b60006020828403121561032c57600080fd5b81356001600160e01b03198116811461034457600080fd5b9392505050565b80356001600160a01b038116811461036257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156103a6576103a6610367565b604052919050565b600082601f8301126103bf57600080fd5b813567ffffffffffffffff8111156103d9576103d9610367565b6103ec601f8201601f191660200161037d565b81815284602083860101111561040157600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561043457600080fd5b61043d8561034b565b935061044b6020860161034b565b925060408501359150606085013567ffffffffffffffff81111561046e57600080fd5b61047a878288016103ae565b91505092959194509250565b6000806040838503121561049957600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b81516001600160a01b0316815260208201516080820190600381106104f357634e487b7160e01b600052602160045260246000fd5b80602084015250604083015160408301526060830151606083015292915050565b60006020828403121561052657600080fd5b5035919050565b600060208083528351808285015260005b8181101561055a5785810183015185820160400152820161053e565b8181111561056c576000604083870101525b50601f01601f1916929092016040019392505050565b600082601f83011261059357600080fd5b8135602067ffffffffffffffff8211156105af576105af610367565b8160051b6105be82820161037d565b92835284810182019282810190878511156105d857600080fd5b83870192505b848310156105f7578235825291830191908301906105de565b979650505050505050565b600080600080600060a0868803121561061a57600080fd5b6106238661034b565b94506106316020870161034b565b9350604086013567ffffffffffffffff8082111561064e57600080fd5b61065a89838a01610582565b9450606088013591508082111561067057600080fd5b61067c89838a01610582565b9350608088013591508082111561069257600080fd5b5061069f888289016103ae565b9150509295509295909350565b600080600080600060a086880312156106c457600080fd5b6106cd8661034b565b94506106db6020870161034b565b93506040860135925060608601359150608086013567ffffffffffffffff81111561070557600080fd5b61069f888289016103ae565b600181811c9082168061072557607f821691505b6020821081141561074657634e487b7160e01b600052602260045260246000fd5b5091905056fea264697066735822122063ab22b3a48b1c53655cbbcd318d8135a52905b628edc24f4e92b2d632f6938b64736f6c634300080c0033";
|
||||
|
||||
type TokenStoreConstructorParams =
|
||||
| [signer?: Signer]
|
||||
|
||||
@@ -43,6 +43,7 @@ export { ERC721LazyMint__factory } from "./ERC721LazyMint__factory";
|
||||
export { ERC721Multiwrap__factory } from "./ERC721Multiwrap__factory";
|
||||
export { ERC721SignatureMint__factory } from "./ERC721SignatureMint__factory";
|
||||
export { Forwarder__factory } from "./Forwarder__factory";
|
||||
export { ForwarderEOAOnly__factory } from "./ForwarderEOAOnly__factory";
|
||||
export { IAppURI__factory } from "./IAppURI__factory";
|
||||
export { IBurnableERC1155__factory } from "./IBurnableERC1155__factory";
|
||||
export { IBurnableERC20__factory } from "./IBurnableERC20__factory";
|
||||
@@ -104,6 +105,7 @@ export { IVotes__factory } from "./IVotes__factory";
|
||||
export { IWETH__factory } from "./IWETH__factory";
|
||||
export { LazyMint__factory } from "./LazyMint__factory";
|
||||
export { Marketplace__factory } from "./Marketplace__factory";
|
||||
export { MinimalForwarderEOAOnly__factory } from "./MinimalForwarderEOAOnly__factory";
|
||||
export { Mock__factory } from "./Mock__factory";
|
||||
export { MockContract__factory } from "./MockContract__factory";
|
||||
export { MockContractPublisher__factory } from "./MockContractPublisher__factory";
|
||||
|
||||
@@ -43,6 +43,7 @@ export type { ERC721LazyMint } from "./ERC721LazyMint";
|
||||
export type { ERC721Multiwrap } from "./ERC721Multiwrap";
|
||||
export type { ERC721SignatureMint } from "./ERC721SignatureMint";
|
||||
export type { Forwarder } from "./Forwarder";
|
||||
export type { ForwarderEOAOnly } from "./ForwarderEOAOnly";
|
||||
export type { IAppURI } from "./IAppURI";
|
||||
export type { IBurnableERC1155 } from "./IBurnableERC1155";
|
||||
export type { IBurnableERC20 } from "./IBurnableERC20";
|
||||
@@ -104,6 +105,7 @@ export type { IVotes } from "./IVotes";
|
||||
export type { IWETH } from "./IWETH";
|
||||
export type { LazyMint } from "./LazyMint";
|
||||
export type { Marketplace } from "./Marketplace";
|
||||
export type { MinimalForwarderEOAOnly } from "./MinimalForwarderEOAOnly";
|
||||
export type { Mock } from "./Mock";
|
||||
export type { MockContract } from "./MockContract";
|
||||
export type { MockContractPublisher } from "./MockContractPublisher";
|
||||
@@ -179,6 +181,7 @@ export { ERC721LazyMint__factory } from "./factories/ERC721LazyMint__factory";
|
||||
export { ERC721Multiwrap__factory } from "./factories/ERC721Multiwrap__factory";
|
||||
export { ERC721SignatureMint__factory } from "./factories/ERC721SignatureMint__factory";
|
||||
export { Forwarder__factory } from "./factories/Forwarder__factory";
|
||||
export { ForwarderEOAOnly__factory } from "./factories/ForwarderEOAOnly__factory";
|
||||
export { IAppURI__factory } from "./factories/IAppURI__factory";
|
||||
export { IBurnableERC1155__factory } from "./factories/IBurnableERC1155__factory";
|
||||
export { IBurnableERC20__factory } from "./factories/IBurnableERC20__factory";
|
||||
@@ -240,6 +243,7 @@ export { IVotes__factory } from "./factories/IVotes__factory";
|
||||
export { IWETH__factory } from "./factories/IWETH__factory";
|
||||
export { LazyMint__factory } from "./factories/LazyMint__factory";
|
||||
export { Marketplace__factory } from "./factories/Marketplace__factory";
|
||||
export { MinimalForwarderEOAOnly__factory } from "./factories/MinimalForwarderEOAOnly__factory";
|
||||
export { Mock__factory } from "./factories/Mock__factory";
|
||||
export { MockContract__factory } from "./factories/MockContract__factory";
|
||||
export { MockContractPublisher__factory } from "./factories/MockContractPublisher__factory";
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# eslint-config-thirdweb
|
||||
|
||||
## 0.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 3abe26c: initialze monorepo packages
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eslint-config-thirdweb",
|
||||
"version": "0.0.0",
|
||||
"version": "0.1.0",
|
||||
"main": "index.js",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"presets": [
|
||||
"@babel/preset-typescript",
|
||||
["@babel/preset-react", { "runtime": "automatic" }],
|
||||
"@babel/preset-env"
|
||||
["@babel/preset-env", { "targets": "defaults, not ie 11" }]
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
node_modules/
|
||||
/test-results/
|
||||
/playwright-report/
|
||||
/playwright/.cache/
|
||||
/test-results/
|
||||
/playwright-report/
|
||||
/playwright/.cache/
|
||||
@@ -1,5 +1,55 @@
|
||||
# @thirdweb-dev/react
|
||||
|
||||
## 2.9.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#50](https://github.com/thirdweb-dev/js/pull/50) [`c903ca8`](https://github.com/thirdweb-dev/js/commit/c903ca8af97a57a5f549d858ad7192388615730c) Thanks [@jnsdls](https://github.com/jnsdls)! - apply (sane) sandboxing to `<MediaRenderer />`
|
||||
|
||||
- Updated dependencies [[`e59735b`](https://github.com/thirdweb-dev/js/commit/e59735b6a2cdcfb660d7bdb16a038f64bd28ca74), [`2eb7e94`](https://github.com/thirdweb-dev/js/commit/2eb7e945b14fd47fc46408d90499888c1f87ca94)]:
|
||||
- @thirdweb-dev/sdk@2.4.3
|
||||
|
||||
## 2.9.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#42](https://github.com/thirdweb-dev/js/pull/42) [`46ad691`](https://github.com/thirdweb-dev/js/commit/46ad691a1636dbc7915ade22067ccfa1d39f7851) Thanks [@jnsdls](https://github.com/jnsdls)! - remove `functionName` + `params` option from `<Web3Button>` - use `action={...}` instead
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#45](https://github.com/thirdweb-dev/js/pull/45) [`ed639d6`](https://github.com/thirdweb-dev/js/commit/ed639d659d9d746321fb8858212d22cc16d9cd19) Thanks [@jnsdls](https://github.com/jnsdls)! - switch back to preconstruct for building
|
||||
|
||||
- [#46](https://github.com/thirdweb-dev/js/pull/46) [`349b5c1`](https://github.com/thirdweb-dev/js/commit/349b5c1e028a06616d40de84257fd8d1cf05df83) Thanks [@jnsdls](https://github.com/jnsdls)! - imrprove babel & tsconfig settings
|
||||
|
||||
- [#42](https://github.com/thirdweb-dev/js/pull/42) [`46ad691`](https://github.com/thirdweb-dev/js/commit/46ad691a1636dbc7915ade22067ccfa1d39f7851) Thanks [@jnsdls](https://github.com/jnsdls)! - switch build to tsup
|
||||
|
||||
- [#34](https://github.com/thirdweb-dev/js/pull/34) [`5731ac2`](https://github.com/thirdweb-dev/js/commit/5731ac2f50ef63c243d3a6c2516e85920c325a95) Thanks [@jnsdls](https://github.com/jnsdls)! - add e2e tests
|
||||
|
||||
- Updated dependencies [[`ed639d6`](https://github.com/thirdweb-dev/js/commit/ed639d659d9d746321fb8858212d22cc16d9cd19), [`349b5c1`](https://github.com/thirdweb-dev/js/commit/349b5c1e028a06616d40de84257fd8d1cf05df83), [`46ad691`](https://github.com/thirdweb-dev/js/commit/46ad691a1636dbc7915ade22067ccfa1d39f7851), [`5731ac2`](https://github.com/thirdweb-dev/js/commit/5731ac2f50ef63c243d3a6c2516e85920c325a95), [`5731ac2`](https://github.com/thirdweb-dev/js/commit/5731ac2f50ef63c243d3a6c2516e85920c325a95)]:
|
||||
- @thirdweb-dev/sdk@2.4.2
|
||||
- @thirdweb-dev/storage@0.2.3
|
||||
|
||||
## 2.8.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 02c2b52: force version
|
||||
- Updated dependencies [02c2b52]
|
||||
- @thirdweb-dev/sdk@2.4.1
|
||||
- @thirdweb-dev/storage@0.2.2
|
||||
|
||||
## 2.8.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 3abe26c: initialze monorepo packages
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3abe26c]
|
||||
- @thirdweb-dev/sdk@2.4.0
|
||||
- @thirdweb-dev/storage@0.2.0
|
||||
|
||||
## 2.7.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<p align="center">
|
||||
<br />
|
||||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/typescript-sdk/blob/main/logo.svg?raw=true" width="200" alt=""/></a>
|
||||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/js/blob/main/packages/sdk/logo.svg?raw=true" width="200" alt=""/></a>
|
||||
<br />
|
||||
</p>
|
||||
<h1 align="center">thirdweb React SDK</h1>
|
||||
<p align="center">
|
||||
<a href="https://www.npmjs.com/package/@thirdweb-dev/react"><img src="https://img.shields.io/github/package-json/v/thirdweb-dev/react?color=red&label=npm&logo=npm" alt="npm version"/></a>
|
||||
<a href="https://github.com/thirdweb-dev/react/actions"><img alt="Build Status" src="https://github.com/thirdweb-dev/react/actions/workflows/build.yml/badge.svg"/></a>
|
||||
<a href="https://www.npmjs.com/package/@thirdweb-dev/react"><img src="https://img.shields.io/npm/v/@thirdweb-dev/react?color=red&label=npm&logo=npm" alt="npm version"/></a>
|
||||
<a href="https://github.com/thirdweb-dev/js/actions/workflows/CI.yml"><img alt="Build Status" src="https://github.com/thirdweb-dev/js/actions/workflows/CI.yml/badge.svg"/></a>
|
||||
<a href="https://discord.gg/thirdweb"><img alt="Join our Discord!" src="https://img.shields.io/discord/834227967404146718.svg?color=7289da&label=discord&logo=discord&style=flat"/></a>
|
||||
|
||||
</p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react",
|
||||
"version": "2.7.5",
|
||||
"version": "2.9.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com:thirdweb-dev/js.git",
|
||||
@@ -11,23 +11,20 @@
|
||||
"main": "dist/thirdweb-dev-react.cjs.js",
|
||||
"types": "dist/thirdweb-dev-react.cjs.d.ts",
|
||||
"module": "dist/thirdweb-dev-react.esm.js",
|
||||
"browser": {
|
||||
"./dist/thirdweb-dev-react.cjs.js": "./dist/thirdweb-dev-react.browser.cjs.js",
|
||||
"./dist/thirdweb-dev-react.esm.js": "./dist/thirdweb-dev-react.browser.esm.js"
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*"
|
||||
"dist/**/*",
|
||||
"patches/**/*"
|
||||
],
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"dev": "preconstruct watch",
|
||||
"lint": "eslint src/",
|
||||
"fix": "eslint src/ --fix",
|
||||
"extract-api": "api-extractor run --local",
|
||||
"generate:md-docs": "yarn api-documenter markdown -i ./temp -o ./docs",
|
||||
"generate-snippets": "node ./scripts/generate-snippets.mjs",
|
||||
"build": "tsc && preconstruct build",
|
||||
"prepublishOnly": "yarn build"
|
||||
"e2e": "yarn test-ct",
|
||||
"test-ct": "playwright test -c playwright-ct.config.ts"
|
||||
},
|
||||
"sideEffects:": false,
|
||||
"devDependencies": {
|
||||
@@ -38,6 +35,8 @@
|
||||
"@microsoft/api-documenter": "^7.15.3",
|
||||
"@microsoft/api-extractor": "^7.19.4",
|
||||
"@microsoft/tsdoc": "^0.14.1",
|
||||
"@playwright/experimental-ct-react": "^1.25.1",
|
||||
"@playwright/test": "^1.25.1",
|
||||
"@preconstruct/cli": "^2.2.1",
|
||||
"@types/color": "^3.0.3",
|
||||
"@types/mime": "^3.0.1",
|
||||
@@ -64,10 +63,10 @@
|
||||
"@gnosis.pm/safe-ethers-adapters": "0.1.0-alpha.9",
|
||||
"@gnosis.pm/safe-ethers-lib": "1.1.0",
|
||||
"@tanstack/react-query": "^4.0.10",
|
||||
"@thirdweb-dev/storage": "*",
|
||||
"@thirdweb-dev/sdk": "*",
|
||||
"@thirdweb-dev/storage": "*",
|
||||
"@zag-js/menu": "^0.1.11",
|
||||
"@zag-js/react": "^0.1.13",
|
||||
"@zag-js/react": "0.1.16",
|
||||
"color": "^4.2.3",
|
||||
"copy-to-clipboard": "^3.3.2",
|
||||
"detect-browser": "^5.3.0",
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
import type { PlaywrightTestConfig } from '@playwright/experimental-ct-react';
|
||||
import { devices } from '@playwright/experimental-ct-react';
|
||||
|
||||
/**
|
||||
* See https://playwright.dev/docs/test-configuration.
|
||||
*/
|
||||
const config: PlaywrightTestConfig = {
|
||||
testDir: './',
|
||||
/* The base directory, relative to the config file, for snapshot files created with toMatchSnapshot and toHaveScreenshot. */
|
||||
snapshotDir: './__snapshots__',
|
||||
/* Maximum time one test can run for. */
|
||||
timeout: 10 * 1000,
|
||||
/* Run tests in files in parallel */
|
||||
fullyParallel: true,
|
||||
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
||||
forbidOnly: !!process.env.CI,
|
||||
/* Retry on CI only */
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
/* Opt out of parallel tests on CI. */
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
||||
reporter: 'html',
|
||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||
use: {
|
||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||
trace: 'on-first-retry',
|
||||
|
||||
/* Port to use for Playwright component endpoint. */
|
||||
ctPort: 3100,
|
||||
},
|
||||
|
||||
/* Configure projects for major browsers */
|
||||
projects: [
|
||||
{
|
||||
name: 'chromium',
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'firefox',
|
||||
use: {
|
||||
...devices['Desktop Firefox'],
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'webkit',
|
||||
use: {
|
||||
...devices['Desktop Safari'],
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
@@ -0,0 +1,107 @@
|
||||
import type { PlaywrightTestConfig } from "@playwright/test";
|
||||
import { devices } from "@playwright/test";
|
||||
|
||||
/**
|
||||
* Read environment variables from file.
|
||||
* https://github.com/motdotla/dotenv
|
||||
*/
|
||||
// require('dotenv').config();
|
||||
|
||||
/**
|
||||
* See https://playwright.dev/docs/test-configuration.
|
||||
*/
|
||||
const config: PlaywrightTestConfig = {
|
||||
testDir: "./e2e",
|
||||
/* Maximum time one test can run for. */
|
||||
timeout: 30 * 1000,
|
||||
expect: {
|
||||
/**
|
||||
* Maximum time expect() should wait for the condition to be met.
|
||||
* For example in `await expect(locator).toHaveText();`
|
||||
*/
|
||||
timeout: 5000,
|
||||
},
|
||||
/* Run tests in files in parallel */
|
||||
fullyParallel: true,
|
||||
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
||||
forbidOnly: !!process.env.CI,
|
||||
/* Retry on CI only */
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
/* Opt out of parallel tests on CI. */
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
||||
reporter: "html",
|
||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||
use: {
|
||||
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
|
||||
actionTimeout: 0,
|
||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||
// baseURL: 'http://localhost:3000',
|
||||
|
||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||
trace: "on-first-retry",
|
||||
},
|
||||
|
||||
/* Configure projects for major browsers */
|
||||
projects: [
|
||||
{
|
||||
name: "chromium",
|
||||
use: {
|
||||
...devices["Desktop Chrome"],
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "firefox",
|
||||
use: {
|
||||
...devices["Desktop Firefox"],
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "webkit",
|
||||
use: {
|
||||
...devices["Desktop Safari"],
|
||||
},
|
||||
},
|
||||
|
||||
/* Test against mobile viewports. */
|
||||
// {
|
||||
// name: 'Mobile Chrome',
|
||||
// use: {
|
||||
// ...devices['Pixel 5'],
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// name: 'Mobile Safari',
|
||||
// use: {
|
||||
// ...devices['iPhone 12'],
|
||||
// },
|
||||
// },
|
||||
|
||||
/* Test against branded browsers. */
|
||||
// {
|
||||
// name: 'Microsoft Edge',
|
||||
// use: {
|
||||
// channel: 'msedge',
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// name: 'Google Chrome',
|
||||
// use: {
|
||||
// channel: 'chrome',
|
||||
// },
|
||||
// },
|
||||
],
|
||||
|
||||
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
|
||||
// outputDir: 'test-results/',
|
||||
|
||||
/* Run your local dev server before starting the tests */
|
||||
// webServer: {
|
||||
// command: 'npm run start',
|
||||
// port: 3000,
|
||||
// },
|
||||
};
|
||||
|
||||
export default config;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user