thirdweb 5.93.5-nightly-b51157c0ff17e9535029fc8790cfa8538d1c995f-20250326000337 → 5.93.5-nightly-e0e31826a8ed11041372f66b3b75fda293a2a05d-20250326035818
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/exports/extensions/dynamic-contracts.js +11 -0
- package/dist/cjs/exports/extensions/dynamic-contracts.js.map +1 -0
- package/dist/cjs/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.js +151 -0
- package/dist/cjs/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.js.map +1 -0
- package/dist/cjs/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.js +117 -0
- package/dist/cjs/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.js.map +1 -0
- package/dist/cjs/extensions/dynamic-contracts/write/installPublishedExtension.js +60 -0
- package/dist/cjs/extensions/dynamic-contracts/write/installPublishedExtension.js.map +1 -0
- package/dist/cjs/extensions/dynamic-contracts/write/uninstallExtension.js +29 -0
- package/dist/cjs/extensions/dynamic-contracts/write/uninstallExtension.js.map +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/exports/extensions/dynamic-contracts.js +6 -0
- package/dist/esm/exports/extensions/dynamic-contracts.js.map +1 -0
- package/dist/esm/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.js +144 -0
- package/dist/esm/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.js.map +1 -0
- package/dist/esm/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.js +110 -0
- package/dist/esm/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.js.map +1 -0
- package/dist/esm/extensions/dynamic-contracts/write/installPublishedExtension.js +57 -0
- package/dist/esm/extensions/dynamic-contracts/write/installPublishedExtension.js.map +1 -0
- package/dist/esm/extensions/dynamic-contracts/write/uninstallExtension.js +26 -0
- package/dist/esm/extensions/dynamic-contracts/write/uninstallExtension.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/exports/extensions/dynamic-contracts.d.ts +6 -0
- package/dist/types/exports/extensions/dynamic-contracts.d.ts.map +1 -0
- package/dist/types/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.d.ts +113 -0
- package/dist/types/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.d.ts.map +1 -0
- package/dist/types/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.d.ts +79 -0
- package/dist/types/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.d.ts.map +1 -0
- package/dist/types/extensions/dynamic-contracts/write/installPublishedExtension.d.ts +30 -0
- package/dist/types/extensions/dynamic-contracts/write/installPublishedExtension.d.ts.map +1 -0
- package/dist/types/extensions/dynamic-contracts/write/uninstallExtension.d.ts +26 -0
- package/dist/types/extensions/dynamic-contracts/write/uninstallExtension.d.ts.map +1 -0
- package/dist/types/extensions/prebuilts/get-required-transactions.d.ts +2 -2
- package/dist/types/extensions/prebuilts/get-required-transactions.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/exports/extensions/dynamic-contracts.ts +11 -0
- package/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts +193 -0
- package/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts +140 -0
- package/src/extensions/dynamic-contracts/write/installPublishedExtension.test.ts +61 -0
- package/src/extensions/dynamic-contracts/write/installPublishedExtension.ts +85 -0
- package/src/extensions/dynamic-contracts/write/uninstallExtension.test.ts +64 -0
- package/src/extensions/dynamic-contracts/write/uninstallExtension.ts +35 -0
- package/src/extensions/prebuilts/get-required-transactions.ts +1 -1
- package/src/version.ts +1 -1
@@ -0,0 +1,110 @@
|
|
1
|
+
import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js";
|
2
|
+
import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js";
|
3
|
+
import { once } from "../../../../../utils/promise/once.js";
|
4
|
+
import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js";
|
5
|
+
export const FN_SELECTOR = "0xee7d2adf";
|
6
|
+
const FN_INPUTS = [
|
7
|
+
{
|
8
|
+
type: "string",
|
9
|
+
name: "extensionName",
|
10
|
+
},
|
11
|
+
];
|
12
|
+
const FN_OUTPUTS = [];
|
13
|
+
/**
|
14
|
+
* Checks if the `removeExtension` 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 `removeExtension` method is supported.
|
17
|
+
* @extension DYNAMIC-CONTRACTS
|
18
|
+
* @example
|
19
|
+
* ```ts
|
20
|
+
* import { isRemoveExtensionSupported } from "thirdweb/extensions/dynamic-contracts";
|
21
|
+
*
|
22
|
+
* const supported = isRemoveExtensionSupported(["0x..."]);
|
23
|
+
* ```
|
24
|
+
*/
|
25
|
+
export function isRemoveExtensionSupported(availableSelectors) {
|
26
|
+
return detectMethod({
|
27
|
+
availableSelectors,
|
28
|
+
method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS],
|
29
|
+
});
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Encodes the parameters for the "removeExtension" function.
|
33
|
+
* @param options - The options for the removeExtension function.
|
34
|
+
* @returns The encoded ABI parameters.
|
35
|
+
* @extension DYNAMIC-CONTRACTS
|
36
|
+
* @example
|
37
|
+
* ```ts
|
38
|
+
* import { encodeRemoveExtensionParams } from "thirdweb/extensions/dynamic-contracts";
|
39
|
+
* const result = encodeRemoveExtensionParams({
|
40
|
+
* extensionName: ...,
|
41
|
+
* });
|
42
|
+
* ```
|
43
|
+
*/
|
44
|
+
export function encodeRemoveExtensionParams(options) {
|
45
|
+
return encodeAbiParameters(FN_INPUTS, [options.extensionName]);
|
46
|
+
}
|
47
|
+
/**
|
48
|
+
* Encodes the "removeExtension" function into a Hex string with its parameters.
|
49
|
+
* @param options - The options for the removeExtension function.
|
50
|
+
* @returns The encoded hexadecimal string.
|
51
|
+
* @extension DYNAMIC-CONTRACTS
|
52
|
+
* @example
|
53
|
+
* ```ts
|
54
|
+
* import { encodeRemoveExtension } from "thirdweb/extensions/dynamic-contracts";
|
55
|
+
* const result = encodeRemoveExtension({
|
56
|
+
* extensionName: ...,
|
57
|
+
* });
|
58
|
+
* ```
|
59
|
+
*/
|
60
|
+
export function encodeRemoveExtension(options) {
|
61
|
+
// we do a "manual" concat here to avoid the overhead of the "concatHex" function
|
62
|
+
// we can do this because we know the specific formats of the values
|
63
|
+
return (FN_SELECTOR +
|
64
|
+
encodeRemoveExtensionParams(options).slice(2));
|
65
|
+
}
|
66
|
+
/**
|
67
|
+
* Prepares a transaction to call the "removeExtension" function on the contract.
|
68
|
+
* @param options - The options for the "removeExtension" function.
|
69
|
+
* @returns A prepared transaction object.
|
70
|
+
* @extension DYNAMIC-CONTRACTS
|
71
|
+
* @example
|
72
|
+
* ```ts
|
73
|
+
* import { sendTransaction } from "thirdweb";
|
74
|
+
* import { removeExtension } from "thirdweb/extensions/dynamic-contracts";
|
75
|
+
*
|
76
|
+
* const transaction = removeExtension({
|
77
|
+
* contract,
|
78
|
+
* extensionName: ...,
|
79
|
+
* overrides: {
|
80
|
+
* ...
|
81
|
+
* }
|
82
|
+
* });
|
83
|
+
*
|
84
|
+
* // Send the transaction
|
85
|
+
* await sendTransaction({ transaction, account });
|
86
|
+
* ```
|
87
|
+
*/
|
88
|
+
export function removeExtension(options) {
|
89
|
+
const asyncOptions = once(async () => {
|
90
|
+
return "asyncParams" in options ? await options.asyncParams() : options;
|
91
|
+
});
|
92
|
+
return prepareContractCall({
|
93
|
+
contract: options.contract,
|
94
|
+
method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS],
|
95
|
+
params: async () => {
|
96
|
+
const resolvedOptions = await asyncOptions();
|
97
|
+
return [resolvedOptions.extensionName];
|
98
|
+
},
|
99
|
+
value: async () => (await asyncOptions()).overrides?.value,
|
100
|
+
accessList: async () => (await asyncOptions()).overrides?.accessList,
|
101
|
+
gas: async () => (await asyncOptions()).overrides?.gas,
|
102
|
+
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
|
103
|
+
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
|
104
|
+
maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas,
|
105
|
+
nonce: async () => (await asyncOptions()).overrides?.nonce,
|
106
|
+
extraGas: async () => (await asyncOptions()).overrides?.extraGas,
|
107
|
+
erc20Value: async () => (await asyncOptions()).overrides?.erc20Value,
|
108
|
+
});
|
109
|
+
}
|
110
|
+
//# sourceMappingURL=removeExtension.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"removeExtension.js","sourceRoot":"","sources":["../../../../../../../src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { resolveContractAbi } from "../../../contract/actions/resolve-abi.js";
|
2
|
+
import { getOrDeployInfraForPublishedContract } from "../../../contract/deployment/utils/bootstrap.js";
|
3
|
+
import { generateExtensionFunctionsFromAbi, getAllDefaultConstructorParamsForImplementation, } from "../../../extensions/prebuilts/get-required-transactions.js";
|
4
|
+
import { addExtension } from "../__generated__/IExtensionManager/write/addExtension.js";
|
5
|
+
/**
|
6
|
+
* Install a published extension on a dynamic contract
|
7
|
+
* @param options - The options for installing a published extension
|
8
|
+
* @returns A prepared transaction to send
|
9
|
+
* @example
|
10
|
+
* ```ts
|
11
|
+
* import { installPublishedExtension } from "thirdweb/dynamic-contracts";
|
12
|
+
* const transaction = installPublishedExtension({
|
13
|
+
* client,
|
14
|
+
* chain,
|
15
|
+
* account,
|
16
|
+
* contract,
|
17
|
+
* extensionName: "MyExtension",
|
18
|
+
* publisherAddress: "0x...",
|
19
|
+
* });
|
20
|
+
* await sendTransaction({ transaction, account });
|
21
|
+
* ```
|
22
|
+
*/
|
23
|
+
export function installPublishedExtension(options) {
|
24
|
+
const { account, contract, extensionName, constructorParams, publisher, version, } = options;
|
25
|
+
return addExtension({
|
26
|
+
contract,
|
27
|
+
asyncParams: async () => {
|
28
|
+
const deployedExtension = await getOrDeployInfraForPublishedContract({
|
29
|
+
chain: contract.chain,
|
30
|
+
client: contract.client,
|
31
|
+
account,
|
32
|
+
contractId: extensionName,
|
33
|
+
constructorParams: constructorParams ||
|
34
|
+
(await getAllDefaultConstructorParamsForImplementation({
|
35
|
+
chain: contract.chain,
|
36
|
+
client: contract.client,
|
37
|
+
contractId: extensionName,
|
38
|
+
})),
|
39
|
+
publisher,
|
40
|
+
version,
|
41
|
+
});
|
42
|
+
const abi = await resolveContractAbi(deployedExtension.implementationContract);
|
43
|
+
const functions = generateExtensionFunctionsFromAbi(abi);
|
44
|
+
return {
|
45
|
+
extension: {
|
46
|
+
metadata: {
|
47
|
+
name: extensionName,
|
48
|
+
metadataURI: "",
|
49
|
+
implementation: deployedExtension.implementationContract.address,
|
50
|
+
},
|
51
|
+
functions,
|
52
|
+
},
|
53
|
+
};
|
54
|
+
},
|
55
|
+
});
|
56
|
+
}
|
57
|
+
//# sourceMappingURL=installPublishedExtension.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"installPublishedExtension.js","sourceRoot":"","sources":["../../../../../src/extensions/dynamic-contracts/write/installPublishedExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAE9E,OAAO,EAAE,oCAAoC,EAAE,MAAM,iDAAiD,CAAC;AACvG,OAAO,EACL,iCAAiC,EACjC,+CAA+C,GAChD,MAAM,4DAA4D,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,0DAA0D,CAAC;AAWxF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAyC;IAEzC,MAAM,EACJ,OAAO,EACP,QAAQ,EACR,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,OAAO,GACR,GAAG,OAAO,CAAC;IAEZ,OAAO,YAAY,CAAC;QAClB,QAAQ;QACR,WAAW,EAAE,KAAK,IAAI,EAAE;YACtB,MAAM,iBAAiB,GAAG,MAAM,oCAAoC,CAAC;gBACnE,KAAK,EAAE,QAAQ,CAAC,KAAK;gBACrB,MAAM,EAAE,QAAQ,CAAC,MAAM;gBACvB,OAAO;gBACP,UAAU,EAAE,aAAa;gBACzB,iBAAiB,EACf,iBAAiB;oBACjB,CAAC,MAAM,+CAA+C,CAAC;wBACrD,KAAK,EAAE,QAAQ,CAAC,KAAK;wBACrB,MAAM,EAAE,QAAQ,CAAC,MAAM;wBACvB,UAAU,EAAE,aAAa;qBAC1B,CAAC,CAAC;gBACL,SAAS;gBACT,OAAO;aACR,CAAC,CAAC;YAEH,MAAM,GAAG,GAAG,MAAM,kBAAkB,CAClC,iBAAiB,CAAC,sBAAsB,CACzC,CAAC;YACF,MAAM,SAAS,GAAG,iCAAiC,CAAC,GAAG,CAAC,CAAC;YACzD,OAAO;gBACL,SAAS,EAAE;oBACT,QAAQ,EAAE;wBACR,IAAI,EAAE,aAAa;wBACnB,WAAW,EAAE,EAAE;wBACf,cAAc,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,OAAO;qBACjE;oBACD,SAAS;iBACV;aACF,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { removeExtension } from "../__generated__/IExtensionManager/write/removeExtension.js";
|
2
|
+
/**
|
3
|
+
* Uninstall an extension on a dynamic contract
|
4
|
+
* @param options - The options for uninstalling an extension
|
5
|
+
* @returns A prepared transaction to send
|
6
|
+
* @example
|
7
|
+
* ```ts
|
8
|
+
* import { uninstallExtension } from "thirdweb/dynamic-contracts";
|
9
|
+
* const transaction = uninstallExtension({
|
10
|
+
* client,
|
11
|
+
* chain,
|
12
|
+
* account,
|
13
|
+
* contract,
|
14
|
+
* extensionName: "MyExtension",
|
15
|
+
* });
|
16
|
+
* await sendTransaction({ transaction, account });
|
17
|
+
* ```
|
18
|
+
*/
|
19
|
+
export function uninstallExtension(options) {
|
20
|
+
const { contract, extensionName } = options;
|
21
|
+
return removeExtension({
|
22
|
+
contract,
|
23
|
+
extensionName,
|
24
|
+
});
|
25
|
+
}
|
26
|
+
//# sourceMappingURL=uninstallExtension.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"uninstallExtension.js","sourceRoot":"","sources":["../../../../../src/extensions/dynamic-contracts/write/uninstallExtension.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,6DAA6D,CAAC;AAQ9F;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAkC;IACnE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAE5C,OAAO,eAAe,CAAC;QACrB,QAAQ;QACR,aAAa;KACd,CAAC,CAAC;AACL,CAAC"}
|
package/dist/esm/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const version = "5.93.5-nightly-
|
1
|
+
export const version = "5.93.5-nightly-e0e31826a8ed11041372f66b3b75fda293a2a05d-20250326035818";
|
2
2
|
//# sourceMappingURL=version.js.map
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* Write
|
3
|
+
*/
|
4
|
+
export { installPublishedExtension, type InstallPublishedExtensionOptions, } from "../../extensions/dynamic-contracts/write/installPublishedExtension.js";
|
5
|
+
export { uninstallExtension, type UninstallExtensionOptions, } from "../../extensions/dynamic-contracts/write/uninstallExtension.js";
|
6
|
+
//# sourceMappingURL=dynamic-contracts.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dynamic-contracts.d.ts","sourceRoot":"","sources":["../../../../src/exports/extensions/dynamic-contracts.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,yBAAyB,EACzB,KAAK,gCAAgC,GACtC,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,GAC/B,MAAM,gEAAgE,CAAC"}
|
@@ -0,0 +1,113 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions, WithOverrides } from "../../../../../transaction/types.js";
|
3
|
+
/**
|
4
|
+
* Represents the parameters for the "addExtension" function.
|
5
|
+
*/
|
6
|
+
export type AddExtensionParams = WithOverrides<{
|
7
|
+
extension: AbiParameterToPrimitiveType<{
|
8
|
+
type: "tuple";
|
9
|
+
name: "extension";
|
10
|
+
components: [
|
11
|
+
{
|
12
|
+
type: "tuple";
|
13
|
+
name: "metadata";
|
14
|
+
components: [
|
15
|
+
{
|
16
|
+
type: "string";
|
17
|
+
name: "name";
|
18
|
+
},
|
19
|
+
{
|
20
|
+
type: "string";
|
21
|
+
name: "metadataURI";
|
22
|
+
},
|
23
|
+
{
|
24
|
+
type: "address";
|
25
|
+
name: "implementation";
|
26
|
+
}
|
27
|
+
];
|
28
|
+
},
|
29
|
+
{
|
30
|
+
type: "tuple[]";
|
31
|
+
name: "functions";
|
32
|
+
components: [
|
33
|
+
{
|
34
|
+
type: "bytes4";
|
35
|
+
name: "functionSelector";
|
36
|
+
},
|
37
|
+
{
|
38
|
+
type: "string";
|
39
|
+
name: "functionSignature";
|
40
|
+
}
|
41
|
+
];
|
42
|
+
}
|
43
|
+
];
|
44
|
+
}>;
|
45
|
+
}>;
|
46
|
+
export declare const FN_SELECTOR: "0xe05688fe";
|
47
|
+
/**
|
48
|
+
* Checks if the `addExtension` method is supported by the given contract.
|
49
|
+
* @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.
|
50
|
+
* @returns A boolean indicating if the `addExtension` method is supported.
|
51
|
+
* @extension DYNAMIC-CONTRACTS
|
52
|
+
* @example
|
53
|
+
* ```ts
|
54
|
+
* import { isAddExtensionSupported } from "thirdweb/extensions/dynamic-contracts";
|
55
|
+
*
|
56
|
+
* const supported = isAddExtensionSupported(["0x..."]);
|
57
|
+
* ```
|
58
|
+
*/
|
59
|
+
export declare function isAddExtensionSupported(availableSelectors: string[]): boolean;
|
60
|
+
/**
|
61
|
+
* Encodes the parameters for the "addExtension" function.
|
62
|
+
* @param options - The options for the addExtension function.
|
63
|
+
* @returns The encoded ABI parameters.
|
64
|
+
* @extension DYNAMIC-CONTRACTS
|
65
|
+
* @example
|
66
|
+
* ```ts
|
67
|
+
* import { encodeAddExtensionParams } from "thirdweb/extensions/dynamic-contracts";
|
68
|
+
* const result = encodeAddExtensionParams({
|
69
|
+
* extension: ...,
|
70
|
+
* });
|
71
|
+
* ```
|
72
|
+
*/
|
73
|
+
export declare function encodeAddExtensionParams(options: AddExtensionParams): `0x${string}`;
|
74
|
+
/**
|
75
|
+
* Encodes the "addExtension" function into a Hex string with its parameters.
|
76
|
+
* @param options - The options for the addExtension function.
|
77
|
+
* @returns The encoded hexadecimal string.
|
78
|
+
* @extension DYNAMIC-CONTRACTS
|
79
|
+
* @example
|
80
|
+
* ```ts
|
81
|
+
* import { encodeAddExtension } from "thirdweb/extensions/dynamic-contracts";
|
82
|
+
* const result = encodeAddExtension({
|
83
|
+
* extension: ...,
|
84
|
+
* });
|
85
|
+
* ```
|
86
|
+
*/
|
87
|
+
export declare function encodeAddExtension(options: AddExtensionParams): `${typeof FN_SELECTOR}${string}`;
|
88
|
+
/**
|
89
|
+
* Prepares a transaction to call the "addExtension" function on the contract.
|
90
|
+
* @param options - The options for the "addExtension" function.
|
91
|
+
* @returns A prepared transaction object.
|
92
|
+
* @extension DYNAMIC-CONTRACTS
|
93
|
+
* @example
|
94
|
+
* ```ts
|
95
|
+
* import { sendTransaction } from "thirdweb";
|
96
|
+
* import { addExtension } from "thirdweb/extensions/dynamic-contracts";
|
97
|
+
*
|
98
|
+
* const transaction = addExtension({
|
99
|
+
* contract,
|
100
|
+
* extension: ...,
|
101
|
+
* overrides: {
|
102
|
+
* ...
|
103
|
+
* }
|
104
|
+
* });
|
105
|
+
*
|
106
|
+
* // Send the transaction
|
107
|
+
* await sendTransaction({ transaction, account });
|
108
|
+
* ```
|
109
|
+
*/
|
110
|
+
export declare function addExtension(options: BaseTransactionOptions<AddExtensionParams | {
|
111
|
+
asyncParams: () => Promise<AddExtensionParams>;
|
112
|
+
}>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
113
|
+
//# sourceMappingURL=addExtension.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"addExtension.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.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,kBAAkB,GAAG,aAAa,CAAC;IAC7C,SAAS,EAAE,2BAA2B,CAAC;QACrC,IAAI,EAAE,OAAO,CAAC;QACd,IAAI,EAAE,WAAW,CAAC;QAClB,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,OAAO,CAAC;gBACd,IAAI,EAAE,UAAU,CAAC;gBACjB,UAAU,EAAE;oBACV;wBAAE,IAAI,EAAE,QAAQ,CAAC;wBAAC,IAAI,EAAE,MAAM,CAAA;qBAAE;oBAChC;wBAAE,IAAI,EAAE,QAAQ,CAAC;wBAAC,IAAI,EAAE,aAAa,CAAA;qBAAE;oBACvC;wBAAE,IAAI,EAAE,SAAS,CAAC;wBAAC,IAAI,EAAE,gBAAgB,CAAA;qBAAE;iBAC5C,CAAC;aACH;YACD;gBACE,IAAI,EAAE,SAAS,CAAC;gBAChB,IAAI,EAAE,WAAW,CAAC;gBAClB,UAAU,EAAE;oBACV;wBAAE,IAAI,EAAE,QAAQ,CAAC;wBAAC,IAAI,EAAE,kBAAkB,CAAA;qBAAE;oBAC5C;wBAAE,IAAI,EAAE,QAAQ,CAAC;wBAAC,IAAI,EAAE,mBAAmB,CAAA;qBAAE;iBAC9C,CAAC;aACH;SACF,CAAC;KACH,CAAC,CAAC;CACJ,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AA2CjD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKnE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,iBAEnE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAMpD,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,sBAAsB,CAC3B,kBAAkB,GAClB;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAChD,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 "removeExtension" function.
|
5
|
+
*/
|
6
|
+
export type RemoveExtensionParams = WithOverrides<{
|
7
|
+
extensionName: AbiParameterToPrimitiveType<{
|
8
|
+
type: "string";
|
9
|
+
name: "extensionName";
|
10
|
+
}>;
|
11
|
+
}>;
|
12
|
+
export declare const FN_SELECTOR: "0xee7d2adf";
|
13
|
+
/**
|
14
|
+
* Checks if the `removeExtension` 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 `removeExtension` method is supported.
|
17
|
+
* @extension DYNAMIC-CONTRACTS
|
18
|
+
* @example
|
19
|
+
* ```ts
|
20
|
+
* import { isRemoveExtensionSupported } from "thirdweb/extensions/dynamic-contracts";
|
21
|
+
*
|
22
|
+
* const supported = isRemoveExtensionSupported(["0x..."]);
|
23
|
+
* ```
|
24
|
+
*/
|
25
|
+
export declare function isRemoveExtensionSupported(availableSelectors: string[]): boolean;
|
26
|
+
/**
|
27
|
+
* Encodes the parameters for the "removeExtension" function.
|
28
|
+
* @param options - The options for the removeExtension function.
|
29
|
+
* @returns The encoded ABI parameters.
|
30
|
+
* @extension DYNAMIC-CONTRACTS
|
31
|
+
* @example
|
32
|
+
* ```ts
|
33
|
+
* import { encodeRemoveExtensionParams } from "thirdweb/extensions/dynamic-contracts";
|
34
|
+
* const result = encodeRemoveExtensionParams({
|
35
|
+
* extensionName: ...,
|
36
|
+
* });
|
37
|
+
* ```
|
38
|
+
*/
|
39
|
+
export declare function encodeRemoveExtensionParams(options: RemoveExtensionParams): `0x${string}`;
|
40
|
+
/**
|
41
|
+
* Encodes the "removeExtension" function into a Hex string with its parameters.
|
42
|
+
* @param options - The options for the removeExtension function.
|
43
|
+
* @returns The encoded hexadecimal string.
|
44
|
+
* @extension DYNAMIC-CONTRACTS
|
45
|
+
* @example
|
46
|
+
* ```ts
|
47
|
+
* import { encodeRemoveExtension } from "thirdweb/extensions/dynamic-contracts";
|
48
|
+
* const result = encodeRemoveExtension({
|
49
|
+
* extensionName: ...,
|
50
|
+
* });
|
51
|
+
* ```
|
52
|
+
*/
|
53
|
+
export declare function encodeRemoveExtension(options: RemoveExtensionParams): `${typeof FN_SELECTOR}${string}`;
|
54
|
+
/**
|
55
|
+
* Prepares a transaction to call the "removeExtension" function on the contract.
|
56
|
+
* @param options - The options for the "removeExtension" function.
|
57
|
+
* @returns A prepared transaction object.
|
58
|
+
* @extension DYNAMIC-CONTRACTS
|
59
|
+
* @example
|
60
|
+
* ```ts
|
61
|
+
* import { sendTransaction } from "thirdweb";
|
62
|
+
* import { removeExtension } from "thirdweb/extensions/dynamic-contracts";
|
63
|
+
*
|
64
|
+
* const transaction = removeExtension({
|
65
|
+
* contract,
|
66
|
+
* extensionName: ...,
|
67
|
+
* overrides: {
|
68
|
+
* ...
|
69
|
+
* }
|
70
|
+
* });
|
71
|
+
*
|
72
|
+
* // Send the transaction
|
73
|
+
* await sendTransaction({ transaction, account });
|
74
|
+
* ```
|
75
|
+
*/
|
76
|
+
export declare function removeExtension(options: BaseTransactionOptions<RemoveExtensionParams | {
|
77
|
+
asyncParams: () => Promise<RemoveExtensionParams>;
|
78
|
+
}>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
79
|
+
//# sourceMappingURL=removeExtension.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"removeExtension.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.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,qBAAqB,GAAG,aAAa,CAAC;IAChD,aAAa,EAAE,2BAA2B,CAAC;QACzC,IAAI,EAAE,QAAQ,CAAC;QACf,IAAI,EAAE,eAAe,CAAC;KACvB,CAAC,CAAC;CACJ,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AASjD;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKtE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,qBAAqB,iBAEzE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,qBAAqB,GAM1D,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,sBAAsB,CAC3B,qBAAqB,GACrB;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACnD,CACJ,8MAwBF"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import type { ThirdwebContract } from "../../../contract/contract.js";
|
2
|
+
import type { Account } from "../../../wallets/interfaces/wallet.js";
|
3
|
+
export type InstallPublishedExtensionOptions = {
|
4
|
+
account: Account;
|
5
|
+
contract: ThirdwebContract;
|
6
|
+
extensionName: string;
|
7
|
+
publisher?: string;
|
8
|
+
version?: string;
|
9
|
+
constructorParams?: Record<string, unknown>;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* Install a published extension on a dynamic contract
|
13
|
+
* @param options - The options for installing a published extension
|
14
|
+
* @returns A prepared transaction to send
|
15
|
+
* @example
|
16
|
+
* ```ts
|
17
|
+
* import { installPublishedExtension } from "thirdweb/dynamic-contracts";
|
18
|
+
* const transaction = installPublishedExtension({
|
19
|
+
* client,
|
20
|
+
* chain,
|
21
|
+
* account,
|
22
|
+
* contract,
|
23
|
+
* extensionName: "MyExtension",
|
24
|
+
* publisherAddress: "0x...",
|
25
|
+
* });
|
26
|
+
* await sendTransaction({ transaction, account });
|
27
|
+
* ```
|
28
|
+
*/
|
29
|
+
export declare function installPublishedExtension(options: InstallPublishedExtensionOptions): import("../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
30
|
+
//# sourceMappingURL=installPublishedExtension.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"installPublishedExtension.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/dynamic-contracts/write/installPublishedExtension.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,MAAM,MAAM,gCAAgC,GAAG;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7C,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,gCAAgC,kMA8C1C"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import type { ThirdwebContract } from "../../../contract/contract.js";
|
2
|
+
import type { Account } from "../../../wallets/interfaces/wallet.js";
|
3
|
+
export type UninstallExtensionOptions = {
|
4
|
+
account: Account;
|
5
|
+
contract: ThirdwebContract;
|
6
|
+
extensionName: string;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Uninstall an extension on a dynamic contract
|
10
|
+
* @param options - The options for uninstalling an extension
|
11
|
+
* @returns A prepared transaction to send
|
12
|
+
* @example
|
13
|
+
* ```ts
|
14
|
+
* import { uninstallExtension } from "thirdweb/dynamic-contracts";
|
15
|
+
* const transaction = uninstallExtension({
|
16
|
+
* client,
|
17
|
+
* chain,
|
18
|
+
* account,
|
19
|
+
* contract,
|
20
|
+
* extensionName: "MyExtension",
|
21
|
+
* });
|
22
|
+
* await sendTransaction({ transaction, account });
|
23
|
+
* ```
|
24
|
+
*/
|
25
|
+
export declare function uninstallExtension(options: UninstallExtensionOptions): import("../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
26
|
+
//# sourceMappingURL=uninstallExtension.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"uninstallExtension.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/dynamic-contracts/write/uninstallExtension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,kMAOpE"}
|
@@ -55,13 +55,13 @@ export declare function getAllDefaultConstructorParamsForImplementation(args: {
|
|
55
55
|
metadataURI: string;
|
56
56
|
};
|
57
57
|
functions: {
|
58
|
-
functionSelector: string
|
58
|
+
functionSelector: `0x${string}`;
|
59
59
|
functionSignature: string;
|
60
60
|
}[];
|
61
61
|
}[];
|
62
62
|
}>;
|
63
63
|
export declare function generateExtensionFunctionsFromAbi(abi: Abi): Array<{
|
64
|
-
functionSelector: string
|
64
|
+
functionSelector: `0x${string}`;
|
65
65
|
functionSignature: string;
|
66
66
|
}>;
|
67
67
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-required-transactions.d.ts","sourceRoot":"","sources":["../../../../src/extensions/prebuilts/get-required-transactions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAe,MAAM,SAAS,CAAC;AAEhD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAS7D,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,uBAAuB,CAAC;AAErF;;GAEG;AACH,KAAK,qBAAqB,GACtB,OAAO,GACP,gBAAgB,GAChB,QAAQ,GACR,WAAW,GACX,OAAO,CAAC;AAEZ;;GAEG;AACH,KAAK,wBAAwB,GAAG;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,IAAI,CACX,uCAAuC,EACvC,SAAS,GAAG,kBAAkB,CAC/B,GACA,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAiFpC;AAmJD;;;;;;;;;;GAUG;AACH,wBAAsB,+CAA+C,CAAC,IAAI,EAAE;IAC1E,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAChD;;;;;;;;;;;;;;8BA2FmB,MAAM;+
|
1
|
+
{"version":3,"file":"get-required-transactions.d.ts","sourceRoot":"","sources":["../../../../src/extensions/prebuilts/get-required-transactions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAe,MAAM,SAAS,CAAC;AAEhD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAS7D,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,uBAAuB,CAAC;AAErF;;GAEG;AACH,KAAK,qBAAqB,GACtB,OAAO,GACP,gBAAgB,GAChB,QAAQ,GACR,WAAW,GACX,OAAO,CAAC;AAEZ;;GAEG;AACH,KAAK,wBAAwB,GAAG;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,IAAI,CACX,uCAAuC,EACvC,SAAS,GAAG,kBAAkB,CAC/B,GACA,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAiFpC;AAmJD;;;;;;;;;;GAUG;AACH,wBAAsB,+CAA+C,CAAC,IAAI,EAAE;IAC1E,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAChD;;;;;;;;;;;;;;8BA2FmB,KAAK,MAAM,EAAE;+BACZ,MAAM;;;GAnD1B;AAiDD,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,CAAC;IACjE,gBAAgB,EAAE,KAAK,MAAM,EAAE,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC,CASD"}
|
package/dist/types/version.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "5.93.5-nightly-
|
1
|
+
export declare const version = "5.93.5-nightly-e0e31826a8ed11041372f66b3b75fda293a2a05d-20250326035818";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "thirdweb",
|
3
|
-
"version": "5.93.5-nightly-
|
3
|
+
"version": "5.93.5-nightly-e0e31826a8ed11041372f66b3b75fda293a2a05d-20250326035818",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/thirdweb-dev/js.git#main"
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* Write
|
3
|
+
*/
|
4
|
+
export {
|
5
|
+
installPublishedExtension,
|
6
|
+
type InstallPublishedExtensionOptions,
|
7
|
+
} from "../../extensions/dynamic-contracts/write/installPublishedExtension.js";
|
8
|
+
export {
|
9
|
+
uninstallExtension,
|
10
|
+
type UninstallExtensionOptions,
|
11
|
+
} from "../../extensions/dynamic-contracts/write/uninstallExtension.js";
|