thirdweb 5.72.0-nightly-f64e0253d7de6fdb6f56ab49315cc4cdcdd75b20-20241127000345 → 5.72.0-nightly-e87eb2ff35eea1b94ab7bdae3585d819879ec53c-20241128000350
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.js +32 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.js +33 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.js +70 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.js +114 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.js +114 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.js +70 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/cancel.js +117 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/cancel.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/initialize.js +202 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/initialize.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.js +129 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.js +171 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/revoke.js +117 -0
- package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/revoke.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.js +33 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.js +33 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/contractType.js +70 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/contractType.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/contractVersion.js +70 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/contractVersion.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.js +133 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.js +70 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.js +114 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/tokenURI.js +114 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/tokenURI.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/initialize.js +175 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/initialize.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/unwrap.js +124 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/unwrap.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/wrap.js +162 -0
- package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/wrap.js.map +1 -0
- package/dist/cjs/extensions/prebuilts/deploy-erc721.js +21 -6
- package/dist/cjs/extensions/prebuilts/deploy-erc721.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.js +29 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.js +30 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.js +64 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.js +106 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.js +106 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.js +64 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/cancel.js +110 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/cancel.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/initialize.js +195 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/initialize.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.js +122 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.js +164 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/revoke.js +110 -0
- package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/revoke.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.js +30 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.js +30 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/contractType.js +64 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/contractType.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/contractVersion.js +64 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/contractVersion.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.js +125 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.js +64 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.js +106 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/tokenURI.js +106 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/tokenURI.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/initialize.js +168 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/initialize.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/unwrap.js +117 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/unwrap.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/wrap.js +155 -0
- package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/wrap.js.map +1 -0
- package/dist/esm/extensions/prebuilts/deploy-erc721.js +15 -0
- package/dist/esm/extensions/prebuilts/deploy-erc721.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.d.ts +54 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.d.ts +95 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.d.ts +44 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.d.ts +83 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.d.ts +83 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.d.ts +44 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/cancel.d.ts +79 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/cancel.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/initialize.d.ts +142 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/initialize.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.d.ts +86 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.d.ts +128 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/revoke.d.ts +79 -0
- package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/revoke.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.d.ts +61 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.d.ts +77 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/contractType.d.ts +44 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/contractType.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/contractVersion.d.ts +44 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/contractVersion.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.d.ts +93 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.d.ts +44 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.d.ts +83 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/tokenURI.d.ts +83 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/read/tokenURI.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/write/initialize.d.ts +121 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/write/initialize.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/write/unwrap.d.ts +86 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/write/unwrap.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/write/wrap.d.ts +111 -0
- package/dist/types/extensions/erc721/__generated__/Multiwrap/write/wrap.d.ts.map +1 -0
- package/dist/types/extensions/prebuilts/deploy-erc721.d.ts +1 -1
- package/dist/types/extensions/prebuilts/deploy-erc721.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts +47 -0
- package/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts +55 -0
- package/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts +70 -0
- package/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts +130 -0
- package/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts +123 -0
- package/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts +70 -0
- package/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts +135 -0
- package/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts +255 -0
- package/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts +148 -0
- package/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts +209 -0
- package/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts +135 -0
- package/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts +55 -0
- package/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts +53 -0
- package/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts +70 -0
- package/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts +70 -0
- package/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts +146 -0
- package/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts +70 -0
- package/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts +130 -0
- package/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts +123 -0
- package/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts +216 -0
- package/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts +146 -0
- package/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts +197 -0
- package/src/extensions/prebuilts/deploy-erc721.test.ts +70 -2
- package/src/extensions/prebuilts/deploy-erc721.ts +17 -1
- package/src/version.ts +1 -1
@@ -0,0 +1,83 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
|
3
|
+
import type { Hex } from "../../../../../utils/encoding/hex.js";
|
4
|
+
/**
|
5
|
+
* Represents the parameters for the "tokenURI" function.
|
6
|
+
*/
|
7
|
+
export type TokenURIParams = {
|
8
|
+
tokenId: AbiParameterToPrimitiveType<{
|
9
|
+
type: "uint256";
|
10
|
+
name: "_tokenId";
|
11
|
+
}>;
|
12
|
+
};
|
13
|
+
export declare const FN_SELECTOR: "0xc87b56dd";
|
14
|
+
/**
|
15
|
+
* Checks if the `tokenURI` method is supported by the given contract.
|
16
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
17
|
+
* @returns A boolean indicating if the `tokenURI` method is supported.
|
18
|
+
* @extension ERC721
|
19
|
+
* @example
|
20
|
+
* ```ts
|
21
|
+
* import { isTokenURISupported } from "thirdweb/extensions/erc721";
|
22
|
+
* const supported = isTokenURISupported(["0x..."]);
|
23
|
+
* ```
|
24
|
+
*/
|
25
|
+
export declare function isTokenURISupported(availableSelectors: string[]): boolean;
|
26
|
+
/**
|
27
|
+
* Encodes the parameters for the "tokenURI" function.
|
28
|
+
* @param options - The options for the tokenURI function.
|
29
|
+
* @returns The encoded ABI parameters.
|
30
|
+
* @extension ERC721
|
31
|
+
* @example
|
32
|
+
* ```ts
|
33
|
+
* import { encodeTokenURIParams } from "thirdweb/extensions/erc721";
|
34
|
+
* const result = encodeTokenURIParams({
|
35
|
+
* tokenId: ...,
|
36
|
+
* });
|
37
|
+
* ```
|
38
|
+
*/
|
39
|
+
export declare function encodeTokenURIParams(options: TokenURIParams): `0x${string}`;
|
40
|
+
/**
|
41
|
+
* Encodes the "tokenURI" function into a Hex string with its parameters.
|
42
|
+
* @param options - The options for the tokenURI function.
|
43
|
+
* @returns The encoded hexadecimal string.
|
44
|
+
* @extension ERC721
|
45
|
+
* @example
|
46
|
+
* ```ts
|
47
|
+
* import { encodeTokenURI } from "thirdweb/extensions/erc721";
|
48
|
+
* const result = encodeTokenURI({
|
49
|
+
* tokenId: ...,
|
50
|
+
* });
|
51
|
+
* ```
|
52
|
+
*/
|
53
|
+
export declare function encodeTokenURI(options: TokenURIParams): `${typeof FN_SELECTOR}${string}`;
|
54
|
+
/**
|
55
|
+
* Decodes the result of the tokenURI function call.
|
56
|
+
* @param result - The hexadecimal result to decode.
|
57
|
+
* @returns The decoded result as per the FN_OUTPUTS definition.
|
58
|
+
* @extension ERC721
|
59
|
+
* @example
|
60
|
+
* ```ts
|
61
|
+
* import { decodeTokenURIResult } from "thirdweb/extensions/erc721";
|
62
|
+
* const result = decodeTokenURIResultResult("...");
|
63
|
+
* ```
|
64
|
+
*/
|
65
|
+
export declare function decodeTokenURIResult(result: Hex): string;
|
66
|
+
/**
|
67
|
+
* Calls the "tokenURI" function on the contract.
|
68
|
+
* @param options - The options for the tokenURI function.
|
69
|
+
* @returns The parsed result of the function call.
|
70
|
+
* @extension ERC721
|
71
|
+
* @example
|
72
|
+
* ```ts
|
73
|
+
* import { tokenURI } from "thirdweb/extensions/erc721";
|
74
|
+
*
|
75
|
+
* const result = await tokenURI({
|
76
|
+
* contract,
|
77
|
+
* tokenId: ...,
|
78
|
+
* });
|
79
|
+
*
|
80
|
+
* ```
|
81
|
+
*/
|
82
|
+
export declare function tokenURI(options: BaseTransactionOptions<TokenURIParams>): Promise<string>;
|
83
|
+
//# sourceMappingURL=tokenURI.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tokenURI.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CAC7E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAajD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAK/D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc,iBAE3D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc,GAIP,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CAC9E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,UAE/C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,sBAAsB,CAAC,cAAc,CAAC,mBAOhD"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
|
2
|
+
import type { Hex } from "../../../../../utils/encoding/hex.js";
|
3
|
+
export declare const FN_SELECTOR: "0xa2309ff8";
|
4
|
+
/**
|
5
|
+
* Checks if the `totalMinted` method is supported by the given contract.
|
6
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
7
|
+
* @returns A boolean indicating if the `totalMinted` method is supported.
|
8
|
+
* @extension ERC721
|
9
|
+
* @example
|
10
|
+
* ```ts
|
11
|
+
* import { isTotalMintedSupported } from "thirdweb/extensions/erc721";
|
12
|
+
* const supported = isTotalMintedSupported(["0x..."]);
|
13
|
+
* ```
|
14
|
+
*/
|
15
|
+
export declare function isTotalMintedSupported(availableSelectors: string[]): boolean;
|
16
|
+
/**
|
17
|
+
* Decodes the result of the totalMinted function call.
|
18
|
+
* @param result - The hexadecimal result to decode.
|
19
|
+
* @returns The decoded result as per the FN_OUTPUTS definition.
|
20
|
+
* @extension ERC721
|
21
|
+
* @example
|
22
|
+
* ```ts
|
23
|
+
* import { decodeTotalMintedResult } from "thirdweb/extensions/erc721";
|
24
|
+
* const result = decodeTotalMintedResultResult("...");
|
25
|
+
* ```
|
26
|
+
*/
|
27
|
+
export declare function decodeTotalMintedResult(result: Hex): bigint;
|
28
|
+
/**
|
29
|
+
* Calls the "totalMinted" function on the contract.
|
30
|
+
* @param options - The options for the totalMinted function.
|
31
|
+
* @returns The parsed result of the function call.
|
32
|
+
* @extension ERC721
|
33
|
+
* @example
|
34
|
+
* ```ts
|
35
|
+
* import { totalMinted } from "thirdweb/extensions/erc721";
|
36
|
+
*
|
37
|
+
* const result = await totalMinted({
|
38
|
+
* contract,
|
39
|
+
* });
|
40
|
+
*
|
41
|
+
* ```
|
42
|
+
*/
|
43
|
+
export declare function totalMinted(options: BaseTransactionOptions): Promise<bigint>;
|
44
|
+
//# sourceMappingURL=totalMinted.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"totalMinted.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAQjD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKlE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,UAElD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,sBAAsB,mBAMhE"}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions, WithOverrides } from "../../../../../transaction/types.js";
|
3
|
+
/**
|
4
|
+
* Represents the parameters for the "cancel" function.
|
5
|
+
*/
|
6
|
+
export type CancelParams = WithOverrides<{
|
7
|
+
tokenId: AbiParameterToPrimitiveType<{
|
8
|
+
type: "uint256";
|
9
|
+
name: "tokenId";
|
10
|
+
}>;
|
11
|
+
}>;
|
12
|
+
export declare const FN_SELECTOR: "0x40e58ee5";
|
13
|
+
/**
|
14
|
+
* Checks if the `cancel` method is supported by the given contract.
|
15
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
16
|
+
* @returns A boolean indicating if the `cancel` method is supported.
|
17
|
+
* @extension ERC721
|
18
|
+
* @example
|
19
|
+
* ```ts
|
20
|
+
* import { isCancelSupported } from "thirdweb/extensions/erc721";
|
21
|
+
*
|
22
|
+
* const supported = isCancelSupported(["0x..."]);
|
23
|
+
* ```
|
24
|
+
*/
|
25
|
+
export declare function isCancelSupported(availableSelectors: string[]): boolean;
|
26
|
+
/**
|
27
|
+
* Encodes the parameters for the "cancel" function.
|
28
|
+
* @param options - The options for the cancel function.
|
29
|
+
* @returns The encoded ABI parameters.
|
30
|
+
* @extension ERC721
|
31
|
+
* @example
|
32
|
+
* ```ts
|
33
|
+
* import { encodeCancelParams } from "thirdweb/extensions/erc721";
|
34
|
+
* const result = encodeCancelParams({
|
35
|
+
* tokenId: ...,
|
36
|
+
* });
|
37
|
+
* ```
|
38
|
+
*/
|
39
|
+
export declare function encodeCancelParams(options: CancelParams): `0x${string}`;
|
40
|
+
/**
|
41
|
+
* Encodes the "cancel" function into a Hex string with its parameters.
|
42
|
+
* @param options - The options for the cancel function.
|
43
|
+
* @returns The encoded hexadecimal string.
|
44
|
+
* @extension ERC721
|
45
|
+
* @example
|
46
|
+
* ```ts
|
47
|
+
* import { encodeCancel } from "thirdweb/extensions/erc721";
|
48
|
+
* const result = encodeCancel({
|
49
|
+
* tokenId: ...,
|
50
|
+
* });
|
51
|
+
* ```
|
52
|
+
*/
|
53
|
+
export declare function encodeCancel(options: CancelParams): `${typeof FN_SELECTOR}${string}`;
|
54
|
+
/**
|
55
|
+
* Prepares a transaction to call the "cancel" function on the contract.
|
56
|
+
* @param options - The options for the "cancel" function.
|
57
|
+
* @returns A prepared transaction object.
|
58
|
+
* @extension ERC721
|
59
|
+
* @example
|
60
|
+
* ```ts
|
61
|
+
* import { sendTransaction } from "thirdweb";
|
62
|
+
* import { cancel } from "thirdweb/extensions/erc721";
|
63
|
+
*
|
64
|
+
* const transaction = cancel({
|
65
|
+
* contract,
|
66
|
+
* tokenId: ...,
|
67
|
+
* overrides: {
|
68
|
+
* ...
|
69
|
+
* }
|
70
|
+
* });
|
71
|
+
*
|
72
|
+
* // Send the transaction
|
73
|
+
* await sendTransaction({ transaction, account });
|
74
|
+
* ```
|
75
|
+
*/
|
76
|
+
export declare function cancel(options: BaseTransactionOptions<CancelParams | {
|
77
|
+
asyncParams: () => Promise<CancelParams>;
|
78
|
+
}>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
79
|
+
//# sourceMappingURL=cancel.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cancel.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAM7C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC;IACvC,OAAO,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;CAC5E,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AASjD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAK7D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,iBAEvD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,GAIL,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CAC5E;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CACpB,OAAO,EAAE,sBAAsB,CAC3B,YAAY,GACZ;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;CAC1C,CACJ,8MAwBF"}
|
@@ -0,0 +1,142 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions, WithOverrides } from "../../../../../transaction/types.js";
|
3
|
+
/**
|
4
|
+
* Represents the parameters for the "initialize" function.
|
5
|
+
*/
|
6
|
+
export type InitializeParams = WithOverrides<{
|
7
|
+
defaultAdmin: AbiParameterToPrimitiveType<{
|
8
|
+
type: "address";
|
9
|
+
name: "_defaultAdmin";
|
10
|
+
}>;
|
11
|
+
name: AbiParameterToPrimitiveType<{
|
12
|
+
type: "string";
|
13
|
+
name: "_name";
|
14
|
+
}>;
|
15
|
+
symbol: AbiParameterToPrimitiveType<{
|
16
|
+
type: "string";
|
17
|
+
name: "_symbol";
|
18
|
+
}>;
|
19
|
+
contractURI: AbiParameterToPrimitiveType<{
|
20
|
+
type: "string";
|
21
|
+
name: "_contractURI";
|
22
|
+
}>;
|
23
|
+
trustedForwarders: AbiParameterToPrimitiveType<{
|
24
|
+
type: "address[]";
|
25
|
+
name: "_trustedForwarders";
|
26
|
+
}>;
|
27
|
+
saleRecipient: AbiParameterToPrimitiveType<{
|
28
|
+
type: "address";
|
29
|
+
name: "_saleRecipient";
|
30
|
+
}>;
|
31
|
+
royaltyRecipient: AbiParameterToPrimitiveType<{
|
32
|
+
type: "address";
|
33
|
+
name: "_royaltyRecipient";
|
34
|
+
}>;
|
35
|
+
royaltyBps: AbiParameterToPrimitiveType<{
|
36
|
+
type: "uint128";
|
37
|
+
name: "_royaltyBps";
|
38
|
+
}>;
|
39
|
+
platformFeeBps: AbiParameterToPrimitiveType<{
|
40
|
+
type: "uint128";
|
41
|
+
name: "_platformFeeBps";
|
42
|
+
}>;
|
43
|
+
platformFeeRecipient: AbiParameterToPrimitiveType<{
|
44
|
+
type: "address";
|
45
|
+
name: "_platformFeeRecipient";
|
46
|
+
}>;
|
47
|
+
}>;
|
48
|
+
export declare const FN_SELECTOR: "0xe1591634";
|
49
|
+
/**
|
50
|
+
* Checks if the `initialize` method is supported by the given contract.
|
51
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
52
|
+
* @returns A boolean indicating if the `initialize` method is supported.
|
53
|
+
* @extension ERC721
|
54
|
+
* @example
|
55
|
+
* ```ts
|
56
|
+
* import { isInitializeSupported } from "thirdweb/extensions/erc721";
|
57
|
+
*
|
58
|
+
* const supported = isInitializeSupported(["0x..."]);
|
59
|
+
* ```
|
60
|
+
*/
|
61
|
+
export declare function isInitializeSupported(availableSelectors: string[]): boolean;
|
62
|
+
/**
|
63
|
+
* Encodes the parameters for the "initialize" function.
|
64
|
+
* @param options - The options for the initialize function.
|
65
|
+
* @returns The encoded ABI parameters.
|
66
|
+
* @extension ERC721
|
67
|
+
* @example
|
68
|
+
* ```ts
|
69
|
+
* import { encodeInitializeParams } from "thirdweb/extensions/erc721";
|
70
|
+
* const result = encodeInitializeParams({
|
71
|
+
* defaultAdmin: ...,
|
72
|
+
* name: ...,
|
73
|
+
* symbol: ...,
|
74
|
+
* contractURI: ...,
|
75
|
+
* trustedForwarders: ...,
|
76
|
+
* saleRecipient: ...,
|
77
|
+
* royaltyRecipient: ...,
|
78
|
+
* royaltyBps: ...,
|
79
|
+
* platformFeeBps: ...,
|
80
|
+
* platformFeeRecipient: ...,
|
81
|
+
* });
|
82
|
+
* ```
|
83
|
+
*/
|
84
|
+
export declare function encodeInitializeParams(options: InitializeParams): `0x${string}`;
|
85
|
+
/**
|
86
|
+
* Encodes the "initialize" function into a Hex string with its parameters.
|
87
|
+
* @param options - The options for the initialize function.
|
88
|
+
* @returns The encoded hexadecimal string.
|
89
|
+
* @extension ERC721
|
90
|
+
* @example
|
91
|
+
* ```ts
|
92
|
+
* import { encodeInitialize } from "thirdweb/extensions/erc721";
|
93
|
+
* const result = encodeInitialize({
|
94
|
+
* defaultAdmin: ...,
|
95
|
+
* name: ...,
|
96
|
+
* symbol: ...,
|
97
|
+
* contractURI: ...,
|
98
|
+
* trustedForwarders: ...,
|
99
|
+
* saleRecipient: ...,
|
100
|
+
* royaltyRecipient: ...,
|
101
|
+
* royaltyBps: ...,
|
102
|
+
* platformFeeBps: ...,
|
103
|
+
* platformFeeRecipient: ...,
|
104
|
+
* });
|
105
|
+
* ```
|
106
|
+
*/
|
107
|
+
export declare function encodeInitialize(options: InitializeParams): `${typeof FN_SELECTOR}${string}`;
|
108
|
+
/**
|
109
|
+
* Prepares a transaction to call the "initialize" function on the contract.
|
110
|
+
* @param options - The options for the "initialize" function.
|
111
|
+
* @returns A prepared transaction object.
|
112
|
+
* @extension ERC721
|
113
|
+
* @example
|
114
|
+
* ```ts
|
115
|
+
* import { sendTransaction } from "thirdweb";
|
116
|
+
* import { initialize } from "thirdweb/extensions/erc721";
|
117
|
+
*
|
118
|
+
* const transaction = initialize({
|
119
|
+
* contract,
|
120
|
+
* defaultAdmin: ...,
|
121
|
+
* name: ...,
|
122
|
+
* symbol: ...,
|
123
|
+
* contractURI: ...,
|
124
|
+
* trustedForwarders: ...,
|
125
|
+
* saleRecipient: ...,
|
126
|
+
* royaltyRecipient: ...,
|
127
|
+
* royaltyBps: ...,
|
128
|
+
* platformFeeBps: ...,
|
129
|
+
* platformFeeRecipient: ...,
|
130
|
+
* overrides: {
|
131
|
+
* ...
|
132
|
+
* }
|
133
|
+
* });
|
134
|
+
*
|
135
|
+
* // Send the transaction
|
136
|
+
* await sendTransaction({ transaction, account });
|
137
|
+
* ```
|
138
|
+
*/
|
139
|
+
export declare function initialize(options: BaseTransactionOptions<InitializeParams | {
|
140
|
+
asyncParams: () => Promise<InitializeParams>;
|
141
|
+
}>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
142
|
+
//# sourceMappingURL=initialize.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAM7C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC;IAC3C,YAAY,EAAE,2BAA2B,CAAC;QACxC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,eAAe,CAAC;KACvB,CAAC,CAAC;IACH,IAAI,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACrE,MAAM,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IACzE,WAAW,EAAE,2BAA2B,CAAC;QACvC,IAAI,EAAE,QAAQ,CAAC;QACf,IAAI,EAAE,cAAc,CAAC;KACtB,CAAC,CAAC;IACH,iBAAiB,EAAE,2BAA2B,CAAC;QAC7C,IAAI,EAAE,WAAW,CAAC;QAClB,IAAI,EAAE,oBAAoB,CAAC;KAC5B,CAAC,CAAC;IACH,aAAa,EAAE,2BAA2B,CAAC;QACzC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,gBAAgB,CAAC;KACxB,CAAC,CAAC;IACH,gBAAgB,EAAE,2BAA2B,CAAC;QAC5C,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,mBAAmB,CAAC;KAC3B,CAAC,CAAC;IACH,UAAU,EAAE,2BAA2B,CAAC;QACtC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,aAAa,CAAC;KACrB,CAAC,CAAC;IACH,cAAc,EAAE,2BAA2B,CAAC;QAC1C,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,iBAAiB,CAAC;KACzB,CAAC,CAAC;IACH,oBAAoB,EAAE,2BAA2B,CAAC;QAChD,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,uBAAuB,CAAC;KAC/B,CAAC,CAAC;CACJ,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AA6CjD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKjE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,iBAa/D;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,GAMhD,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,sBAAsB,CAC3B,gBAAgB,GAChB;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC9C,CACJ,8MAmCF"}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions, WithOverrides } from "../../../../../transaction/types.js";
|
3
|
+
/**
|
4
|
+
* Represents the parameters for the "mintTo" function.
|
5
|
+
*/
|
6
|
+
export type MintToParams = WithOverrides<{
|
7
|
+
to: AbiParameterToPrimitiveType<{
|
8
|
+
type: "address";
|
9
|
+
name: "_to";
|
10
|
+
}>;
|
11
|
+
uri: AbiParameterToPrimitiveType<{
|
12
|
+
type: "string";
|
13
|
+
name: "_uri";
|
14
|
+
}>;
|
15
|
+
}>;
|
16
|
+
export declare const FN_SELECTOR: "0x0075a317";
|
17
|
+
/**
|
18
|
+
* Checks if the `mintTo` method is supported by the given contract.
|
19
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
20
|
+
* @returns A boolean indicating if the `mintTo` method is supported.
|
21
|
+
* @extension ERC721
|
22
|
+
* @example
|
23
|
+
* ```ts
|
24
|
+
* import { isMintToSupported } from "thirdweb/extensions/erc721";
|
25
|
+
*
|
26
|
+
* const supported = isMintToSupported(["0x..."]);
|
27
|
+
* ```
|
28
|
+
*/
|
29
|
+
export declare function isMintToSupported(availableSelectors: string[]): boolean;
|
30
|
+
/**
|
31
|
+
* Encodes the parameters for the "mintTo" function.
|
32
|
+
* @param options - The options for the mintTo function.
|
33
|
+
* @returns The encoded ABI parameters.
|
34
|
+
* @extension ERC721
|
35
|
+
* @example
|
36
|
+
* ```ts
|
37
|
+
* import { encodeMintToParams } from "thirdweb/extensions/erc721";
|
38
|
+
* const result = encodeMintToParams({
|
39
|
+
* to: ...,
|
40
|
+
* uri: ...,
|
41
|
+
* });
|
42
|
+
* ```
|
43
|
+
*/
|
44
|
+
export declare function encodeMintToParams(options: MintToParams): `0x${string}`;
|
45
|
+
/**
|
46
|
+
* Encodes the "mintTo" function into a Hex string with its parameters.
|
47
|
+
* @param options - The options for the mintTo function.
|
48
|
+
* @returns The encoded hexadecimal string.
|
49
|
+
* @extension ERC721
|
50
|
+
* @example
|
51
|
+
* ```ts
|
52
|
+
* import { encodeMintTo } from "thirdweb/extensions/erc721";
|
53
|
+
* const result = encodeMintTo({
|
54
|
+
* to: ...,
|
55
|
+
* uri: ...,
|
56
|
+
* });
|
57
|
+
* ```
|
58
|
+
*/
|
59
|
+
export declare function encodeMintTo(options: MintToParams): `${typeof FN_SELECTOR}${string}`;
|
60
|
+
/**
|
61
|
+
* Prepares a transaction to call the "mintTo" function on the contract.
|
62
|
+
* @param options - The options for the "mintTo" function.
|
63
|
+
* @returns A prepared transaction object.
|
64
|
+
* @extension ERC721
|
65
|
+
* @example
|
66
|
+
* ```ts
|
67
|
+
* import { sendTransaction } from "thirdweb";
|
68
|
+
* import { mintTo } from "thirdweb/extensions/erc721";
|
69
|
+
*
|
70
|
+
* const transaction = mintTo({
|
71
|
+
* contract,
|
72
|
+
* to: ...,
|
73
|
+
* uri: ...,
|
74
|
+
* overrides: {
|
75
|
+
* ...
|
76
|
+
* }
|
77
|
+
* });
|
78
|
+
*
|
79
|
+
* // Send the transaction
|
80
|
+
* await sendTransaction({ transaction, account });
|
81
|
+
* ```
|
82
|
+
*/
|
83
|
+
export declare function mintTo(options: BaseTransactionOptions<MintToParams | {
|
84
|
+
asyncParams: () => Promise<MintToParams>;
|
85
|
+
}>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
86
|
+
//# sourceMappingURL=mintTo.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mintTo.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAM7C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC;IACvC,EAAE,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;IAClE,GAAG,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpE,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAkBjD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAK7D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,iBAEvD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,GAIL,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CAC5E;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,MAAM,CACpB,OAAO,EAAE,sBAAsB,CAC3B,YAAY,GACZ;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;CAC1C,CACJ,8MAwBF"}
|
@@ -0,0 +1,128 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions, WithOverrides } from "../../../../../transaction/types.js";
|
3
|
+
/**
|
4
|
+
* Represents the parameters for the "mintWithSignature" function.
|
5
|
+
*/
|
6
|
+
export type MintWithSignatureParams = WithOverrides<{
|
7
|
+
req: AbiParameterToPrimitiveType<{
|
8
|
+
type: "tuple";
|
9
|
+
name: "_req";
|
10
|
+
components: [
|
11
|
+
{
|
12
|
+
type: "address";
|
13
|
+
name: "to";
|
14
|
+
},
|
15
|
+
{
|
16
|
+
type: "address";
|
17
|
+
name: "royaltyRecipient";
|
18
|
+
},
|
19
|
+
{
|
20
|
+
type: "uint256";
|
21
|
+
name: "royaltyBps";
|
22
|
+
},
|
23
|
+
{
|
24
|
+
type: "address";
|
25
|
+
name: "primarySaleRecipient";
|
26
|
+
},
|
27
|
+
{
|
28
|
+
type: "uint256";
|
29
|
+
name: "quantity";
|
30
|
+
},
|
31
|
+
{
|
32
|
+
type: "uint256";
|
33
|
+
name: "pricePerToken";
|
34
|
+
},
|
35
|
+
{
|
36
|
+
type: "address";
|
37
|
+
name: "currency";
|
38
|
+
},
|
39
|
+
{
|
40
|
+
type: "uint128";
|
41
|
+
name: "validityStartTimestamp";
|
42
|
+
},
|
43
|
+
{
|
44
|
+
type: "uint128";
|
45
|
+
name: "validityEndTimestamp";
|
46
|
+
},
|
47
|
+
{
|
48
|
+
type: "string";
|
49
|
+
name: "uri";
|
50
|
+
}
|
51
|
+
];
|
52
|
+
}>;
|
53
|
+
signature: AbiParameterToPrimitiveType<{
|
54
|
+
type: "bytes";
|
55
|
+
name: "_signature";
|
56
|
+
}>;
|
57
|
+
}>;
|
58
|
+
export declare const FN_SELECTOR: "0x91c5ee92";
|
59
|
+
/**
|
60
|
+
* Checks if the `mintWithSignature` method is supported by the given contract.
|
61
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
62
|
+
* @returns A boolean indicating if the `mintWithSignature` method is supported.
|
63
|
+
* @extension ERC721
|
64
|
+
* @example
|
65
|
+
* ```ts
|
66
|
+
* import { isMintWithSignatureSupported } from "thirdweb/extensions/erc721";
|
67
|
+
*
|
68
|
+
* const supported = isMintWithSignatureSupported(["0x..."]);
|
69
|
+
* ```
|
70
|
+
*/
|
71
|
+
export declare function isMintWithSignatureSupported(availableSelectors: string[]): boolean;
|
72
|
+
/**
|
73
|
+
* Encodes the parameters for the "mintWithSignature" function.
|
74
|
+
* @param options - The options for the mintWithSignature function.
|
75
|
+
* @returns The encoded ABI parameters.
|
76
|
+
* @extension ERC721
|
77
|
+
* @example
|
78
|
+
* ```ts
|
79
|
+
* import { encodeMintWithSignatureParams } from "thirdweb/extensions/erc721";
|
80
|
+
* const result = encodeMintWithSignatureParams({
|
81
|
+
* req: ...,
|
82
|
+
* signature: ...,
|
83
|
+
* });
|
84
|
+
* ```
|
85
|
+
*/
|
86
|
+
export declare function encodeMintWithSignatureParams(options: MintWithSignatureParams): `0x${string}`;
|
87
|
+
/**
|
88
|
+
* Encodes the "mintWithSignature" function into a Hex string with its parameters.
|
89
|
+
* @param options - The options for the mintWithSignature function.
|
90
|
+
* @returns The encoded hexadecimal string.
|
91
|
+
* @extension ERC721
|
92
|
+
* @example
|
93
|
+
* ```ts
|
94
|
+
* import { encodeMintWithSignature } from "thirdweb/extensions/erc721";
|
95
|
+
* const result = encodeMintWithSignature({
|
96
|
+
* req: ...,
|
97
|
+
* signature: ...,
|
98
|
+
* });
|
99
|
+
* ```
|
100
|
+
*/
|
101
|
+
export declare function encodeMintWithSignature(options: MintWithSignatureParams): `${typeof FN_SELECTOR}${string}`;
|
102
|
+
/**
|
103
|
+
* Prepares a transaction to call the "mintWithSignature" function on the contract.
|
104
|
+
* @param options - The options for the "mintWithSignature" function.
|
105
|
+
* @returns A prepared transaction object.
|
106
|
+
* @extension ERC721
|
107
|
+
* @example
|
108
|
+
* ```ts
|
109
|
+
* import { sendTransaction } from "thirdweb";
|
110
|
+
* import { mintWithSignature } from "thirdweb/extensions/erc721";
|
111
|
+
*
|
112
|
+
* const transaction = mintWithSignature({
|
113
|
+
* contract,
|
114
|
+
* req: ...,
|
115
|
+
* signature: ...,
|
116
|
+
* overrides: {
|
117
|
+
* ...
|
118
|
+
* }
|
119
|
+
* });
|
120
|
+
*
|
121
|
+
* // Send the transaction
|
122
|
+
* await sendTransaction({ transaction, account });
|
123
|
+
* ```
|
124
|
+
*/
|
125
|
+
export declare function mintWithSignature(options: BaseTransactionOptions<MintWithSignatureParams | {
|
126
|
+
asyncParams: () => Promise<MintWithSignatureParams>;
|
127
|
+
}>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
128
|
+
//# sourceMappingURL=mintWithSignature.d.ts.map
|
package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mintWithSignature.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAM7C;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC;IAClD,GAAG,EAAE,2BAA2B,CAAC;QAC/B,IAAI,EAAE,OAAO,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE;YACV;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,IAAI,CAAA;aAAE;YAC/B;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,kBAAkB,CAAA;aAAE;YAC7C;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,YAAY,CAAA;aAAE;YACvC;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,sBAAsB,CAAA;aAAE;YACjD;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,UAAU,CAAA;aAAE;YACrC;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,eAAe,CAAA;aAAE;YAC1C;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,UAAU,CAAA;aAAE;YACrC;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,wBAAwB,CAAA;aAAE;YACnD;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,sBAAsB,CAAA;aAAE;YACjD;gBAAE,IAAI,EAAE,QAAQ,CAAC;gBAAC,IAAI,EAAE,KAAK,CAAA;aAAE;SAChC,CAAC;KACH,CAAC,CAAC;IACH,SAAS,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,YAAY,CAAA;KAAE,CAAC,CAAC;CAC/E,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AA4DjD;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKxE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,uBAAuB,iBAGjC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,uBAAuB,GAM9D,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,sBAAsB,CAC3B,uBAAuB,GACvB;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACrD,CACJ,8MAwBF"}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions, WithOverrides } from "../../../../../transaction/types.js";
|
3
|
+
/**
|
4
|
+
* Represents the parameters for the "revoke" function.
|
5
|
+
*/
|
6
|
+
export type RevokeParams = WithOverrides<{
|
7
|
+
tokenId: AbiParameterToPrimitiveType<{
|
8
|
+
type: "uint256";
|
9
|
+
name: "tokenId";
|
10
|
+
}>;
|
11
|
+
}>;
|
12
|
+
export declare const FN_SELECTOR: "0x20c5429b";
|
13
|
+
/**
|
14
|
+
* Checks if the `revoke` method is supported by the given contract.
|
15
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
16
|
+
* @returns A boolean indicating if the `revoke` method is supported.
|
17
|
+
* @extension ERC721
|
18
|
+
* @example
|
19
|
+
* ```ts
|
20
|
+
* import { isRevokeSupported } from "thirdweb/extensions/erc721";
|
21
|
+
*
|
22
|
+
* const supported = isRevokeSupported(["0x..."]);
|
23
|
+
* ```
|
24
|
+
*/
|
25
|
+
export declare function isRevokeSupported(availableSelectors: string[]): boolean;
|
26
|
+
/**
|
27
|
+
* Encodes the parameters for the "revoke" function.
|
28
|
+
* @param options - The options for the revoke function.
|
29
|
+
* @returns The encoded ABI parameters.
|
30
|
+
* @extension ERC721
|
31
|
+
* @example
|
32
|
+
* ```ts
|
33
|
+
* import { encodeRevokeParams } from "thirdweb/extensions/erc721";
|
34
|
+
* const result = encodeRevokeParams({
|
35
|
+
* tokenId: ...,
|
36
|
+
* });
|
37
|
+
* ```
|
38
|
+
*/
|
39
|
+
export declare function encodeRevokeParams(options: RevokeParams): `0x${string}`;
|
40
|
+
/**
|
41
|
+
* Encodes the "revoke" function into a Hex string with its parameters.
|
42
|
+
* @param options - The options for the revoke function.
|
43
|
+
* @returns The encoded hexadecimal string.
|
44
|
+
* @extension ERC721
|
45
|
+
* @example
|
46
|
+
* ```ts
|
47
|
+
* import { encodeRevoke } from "thirdweb/extensions/erc721";
|
48
|
+
* const result = encodeRevoke({
|
49
|
+
* tokenId: ...,
|
50
|
+
* });
|
51
|
+
* ```
|
52
|
+
*/
|
53
|
+
export declare function encodeRevoke(options: RevokeParams): `${typeof FN_SELECTOR}${string}`;
|
54
|
+
/**
|
55
|
+
* Prepares a transaction to call the "revoke" function on the contract.
|
56
|
+
* @param options - The options for the "revoke" function.
|
57
|
+
* @returns A prepared transaction object.
|
58
|
+
* @extension ERC721
|
59
|
+
* @example
|
60
|
+
* ```ts
|
61
|
+
* import { sendTransaction } from "thirdweb";
|
62
|
+
* import { revoke } from "thirdweb/extensions/erc721";
|
63
|
+
*
|
64
|
+
* const transaction = revoke({
|
65
|
+
* contract,
|
66
|
+
* tokenId: ...,
|
67
|
+
* overrides: {
|
68
|
+
* ...
|
69
|
+
* }
|
70
|
+
* });
|
71
|
+
*
|
72
|
+
* // Send the transaction
|
73
|
+
* await sendTransaction({ transaction, account });
|
74
|
+
* ```
|
75
|
+
*/
|
76
|
+
export declare function revoke(options: BaseTransactionOptions<RevokeParams | {
|
77
|
+
asyncParams: () => Promise<RevokeParams>;
|
78
|
+
}>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
79
|
+
//# sourceMappingURL=revoke.d.ts.map
|